mirror of
https://github.com/element-hq/element-web
synced 2024-11-21 16:55:34 +03:00
[Backport staging] Fix vertical alignment of default avatar font (#11592)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9834686e90
commit
06ab698269
2 changed files with 12 additions and 1 deletions
|
@ -24,8 +24,9 @@ limitations under the License.
|
|||
}
|
||||
|
||||
button.mx_BaseAvatar {
|
||||
/* The user agent stylesheet overrides the font-size in this scenario
|
||||
/* The user agent stylesheet overrides the font-size & line-height in this scenario
|
||||
And that breaks the alignment, emojis, and all sorts of things
|
||||
*/
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
|
|
@ -99,6 +99,11 @@ 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%;
|
||||
|
@ -250,6 +255,11 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue