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

Commit

Permalink
Fix avatar in right panel not using the correct font (#11593)
Browse files Browse the repository at this point in the history
* Fix style

* Remove previous fix
  • Loading branch information
MidhunSureshR authored Sep 11, 2023
1 parent 8837e52 commit 3c6d8a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
6 changes: 3 additions & 3 deletions res/css/views/avatars/_BaseAvatar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ limitations under the License.
}

button.mx_BaseAvatar {
/* The user agent stylesheet overrides the font-size & line-height in this scenario
And that breaks the alignment, emojis, and all sorts of things
/* <button> is a form element and by default it uses the user agent (browser) styling.
We want it to inherit the font-family and line-height from its parent.
*/
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
10 changes: 0 additions & 10 deletions res/css/views/right_panel/_UserInfo.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ limitations under the License.
margin: 0 auto;
transition: 0.5s;

.mx_BaseAvatar {
/* Override the calculated font-size so that the letter isn't tiny */
font-size: 4rem;
}

.mx_BaseAvatar,
.mx_BaseAvatar img {
width: 100%;
Expand Down Expand Up @@ -255,11 +250,6 @@ limitations under the License.
max-width: 72px;
margin: 0 auto;
}

.mx_BaseAvatar {
/* Override the calculated font-size so that the letter isn't tiny */
font-size: 2rem;
}
}
}
}

0 comments on commit 3c6d8a2

Please sign in to comment.