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

Commit 3c6d8a2

Browse files
Fix avatar in right panel not using the correct font (#11593)
* Fix style * Remove previous fix
1 parent 8837e52 commit 3c6d8a2

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

res/css/views/avatars/_BaseAvatar.pcss

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

2626
button.mx_BaseAvatar {
27-
/* The user agent stylesheet overrides the font-size & line-height in this scenario
28-
And that breaks the alignment, emojis, and all sorts of things
27+
/* <button> is a form element and by default it uses the user agent (browser) styling.
28+
We want it to inherit the font-family and line-height from its parent.
2929
*/
30-
font-size: inherit;
30+
font-family: inherit;
3131
line-height: inherit;
3232
}

res/css/views/right_panel/_UserInfo.pcss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ 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-
107102
.mx_BaseAvatar,
108103
.mx_BaseAvatar img {
109104
width: 100%;
@@ -255,11 +250,6 @@ limitations under the License.
255250
max-width: 72px;
256251
margin: 0 auto;
257252
}
258-
259-
.mx_BaseAvatar {
260-
/* Override the calculated font-size so that the letter isn't tiny */
261-
font-size: 2rem;
262-
}
263253
}
264254
}
265255
}

0 commit comments

Comments
 (0)