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

Commit

Permalink
Merge pull request #2792 from jryans/firefox-mels
Browse files Browse the repository at this point in the history
Fix initial letter avatar vertical offset in Firefox
  • Loading branch information
jryans authored Mar 15, 2019
2 parents ac48ed8 + 990d6de commit a7f18b5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions res/css/views/avatars/_BaseAvatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ limitations under the License.

.mx_BaseAvatar {
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 {
Expand Down

0 comments on commit a7f18b5

Please sign in to comment.