You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Merge pull request #2792 from jryans/firefox-mels
Fix initial letter avatar vertical offset in Firefox
This commit is contained in:
@@ -16,6 +16,16 @@ limitations under the License.
|
|||||||
|
|
||||||
.mx_BaseAvatar {
|
.mx_BaseAvatar {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
// In at least Firefox, the case of relative positioned inline elements
|
||||||
|
// (such as mx_BaseAvatar) with absolute positioned children (such as
|
||||||
|
// mx_BaseAvatar_initial) is a dark corner full of spider webs. It will give
|
||||||
|
// different results during full reflow of the page vs. incremental reflow
|
||||||
|
// of small portions. While that's surely a browser bug, we can avoid it by
|
||||||
|
// using `inline-block` instead of the default `inline`.
|
||||||
|
// https://github.com/vector-im/riot-web/issues/5594
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=1535053
|
||||||
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=255139
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_BaseAvatar_initial {
|
.mx_BaseAvatar_initial {
|
||||||
|
|||||||
Reference in New Issue
Block a user