Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 06ab698

Browse files
RiotRobott3chguy
andauthored
[Backport staging] Fix vertical alignment of default avatar font (#11592)
Co-authored-by: Michael Telatynski <[email protected]>
1 parent 9834686 commit 06ab698

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

res/css/views/avatars/_BaseAvatar.pcss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ limitations under the License.
2424
}
2525

2626
button.mx_BaseAvatar {
27-
/* The user agent stylesheet overrides the font-size in this scenario
27+
/* The user agent stylesheet overrides the font-size & line-height in this scenario
2828
And that breaks the alignment, emojis, and all sorts of things
2929
*/
3030
font-size: inherit;
31+
line-height: inherit;
3132
}

res/css/views/right_panel/_UserInfo.pcss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ limitations under the License.
9999
margin: 0 auto;
100100
transition: 0.5s;
101101

102+
.mx_BaseAvatar {
103+
/* Override the calculated font-size so that the letter isn't tiny */
104+
font-size: 4rem;
105+
}
106+
102107
.mx_BaseAvatar,
103108
.mx_BaseAvatar img {
104109
width: 100%;
@@ -250,6 +255,11 @@ limitations under the License.
250255
max-width: 72px;
251256
margin: 0 auto;
252257
}
258+
259+
.mx_BaseAvatar {
260+
/* Override the calculated font-size so that the letter isn't tiny */
261+
font-size: 2rem;
262+
}
253263
}
254264
}
255265
}

0 commit comments

Comments
 (0)