Skip to content

Commit 3308533

Browse files
committed
feat: add avatar placeholder styling and improve layout in GeneralSettings
1 parent b71330e commit 3308533

3 files changed

Lines changed: 37 additions & 29 deletions

File tree

src/assets/App.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ a {
143143
border-radius: 20px;
144144
}
145145

146+
.avatarPlaceholder {
147+
height: 34px;
148+
width: 34px;
149+
margin-top: 10px;
150+
border-radius: 20px;
151+
}
152+
146153
.badgeCount {
147154
width: 20px;
148155
height: 20px;
@@ -1159,6 +1166,7 @@ Producthunt item
11591166
/* User */
11601167
.profileImageContainer {
11611168
position: relative;
1169+
overflow: hidden;
11621170

11631171
img {
11641172
width: 40px;

src/components/Layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const Header = () => {
103103
</div>
104104
</>
105105
) : (
106-
<AvatarPlaceholder className="profileImage" />
106+
<AvatarPlaceholder className="avatarPlaceholder" />
107107
)}
108108
</CircleButton>
109109
</div>

src/features/settings/components/GeneralSettings/generalSettings.css

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -102,35 +102,35 @@ Select styles
102102
display: flex;
103103
align-items: center;
104104
border-bottom: 1px solid var(--card-content-divider);
105-
}
106-
.userContent .userImage {
107-
width: 50px;
108-
height: 50px;
109-
border-radius: 100%;
110-
align-self: flex-start;
111-
}
112-
.userContent .userInfos {
113-
flex: 1;
114-
display: flex;
115-
flex-direction: column;
116-
gap: 8px;
117-
width: auto;
118-
margin-left: 10px;
119-
}
120-
.userContent .userName {
121-
font-weight: 600;
122-
}
123105

124-
.userContent .actions {
125-
margin-top: 6px;
126-
}
127-
.userContent .sub {
128-
font-size: 0.9em;
129-
opacity: 0.9;
130-
display: flex;
131-
flex-direction: row;
132-
align-items: center;
133-
column-gap: 4px;
106+
.userImage {
107+
width: 50px;
108+
height: 50px;
109+
border-radius: 100%;
110+
align-self: flex-start;
111+
}
112+
.userInfos {
113+
flex: 1;
114+
display: flex;
115+
flex-direction: column;
116+
gap: 8px;
117+
width: auto;
118+
margin-left: 10px;
119+
}
120+
.userName {
121+
font-weight: 600;
122+
}
123+
.actions {
124+
margin-top: 6px;
125+
}
126+
.sub {
127+
font-size: 0.9em;
128+
opacity: 0.9;
129+
display: flex;
130+
flex-direction: row;
131+
align-items: center;
132+
column-gap: 4px;
133+
}
134134
}
135135

136136
.streaks {

0 commit comments

Comments
 (0)