File tree Expand file tree Collapse file tree 2 files changed +44
-15
lines changed
src/features/settings/components Expand file tree Collapse file tree 2 files changed +44
-15
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ Select styles
101101 padding : 20px 0px ;
102102 display : flex;
103103 align-items : center;
104+ justify-content : space-between;
104105 border-bottom : 1px solid var (--card-content-divider );
105106
106107 .userImage {
@@ -109,6 +110,16 @@ Select styles
109110 border-radius : 100% ;
110111 align-self : flex-start;
111112 }
113+ .userDetails {
114+ display : flex;
115+ flex-direction : row;
116+ gap : 8px ;
117+ }
118+ .userInfo {
119+ display : flex;
120+ flex-direction : column;
121+ gap : 8px ;
122+ }
112123 .userInfos {
113124 flex : 1 ;
114125 display : flex;
@@ -214,3 +225,18 @@ Select styles
214225.streaks .checked : is (: has (+ .checked ))::before {
215226 background-color : # 18bc2d ;
216227}
228+
229+ @media (max-width : 768px ) {
230+ .settingContent {
231+ margin-top : 6px ;
232+ }
233+ .settingRow {
234+ flex-direction : column;
235+ align-items : flex-start;
236+ }
237+ .userContent {
238+ flex-direction : column;
239+ align-items : flex-start;
240+ gap : 16px ;
241+ }
242+ }
Original file line number Diff line number Diff line change @@ -44,21 +44,24 @@ export const UserInfo = () => {
4444 onClose = { ( ) => setShowLogout ( false ) }
4545 onConfirm = { logout }
4646 />
47- { user ?. imageURL && < img src = { user . imageURL } className = "userImage" > </ img > }
48- < div className = "userInfos" >
49- < div className = "userName" > { user . name } </ div >
50- < div className = "sub" >
51- { providerId == 'github.com' ? (
52- < FaGithub size = { 18 } />
53- ) : providerId == 'google.com' ? (
54- < FcGoogle size = { 18 } />
55- ) : null }
56- Connected with < span className = "capitalize" > { providerName } </ span >
57- </ div >
58- < div className = "actions" >
59- < Button className = "logoutBtn" onClick = { ( ) => setShowLogout ( true ) } size = "small" >
60- Logout
61- </ Button >
47+
48+ < div className = "userDetails" >
49+ { user ?. imageURL && < img src = { user . imageURL } className = "userImage" > </ img > }
50+ < div className = "userInfo" >
51+ < div className = "userName" > { user . name } </ div >
52+ < div className = "sub" >
53+ { providerId == 'github.com' ? (
54+ < FaGithub size = { 18 } />
55+ ) : providerId == 'google.com' ? (
56+ < FcGoogle size = { 18 } />
57+ ) : null }
58+ Connected with < span className = "capitalize" > { providerName } </ span >
59+ </ div >
60+ < div className = "actions" >
61+ < Button className = "logoutBtn" onClick = { ( ) => setShowLogout ( true ) } size = "small" >
62+ Logout
63+ </ Button >
64+ </ div >
6265 </ div >
6366 </ div >
6467
You can’t perform that action at this time.
0 commit comments