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

Commit 371a3c0

Browse files
authored
Apply more general fix for base avatar regressions (#10045)
1 parent 7feb5b1 commit 371a3c0

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

res/css/structures/_UserMenu.pcss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ limitations under the License.
2525

2626
.mx_UserMenu_userAvatar {
2727
position: relative;
28-
/* without this a default avatar will cause this to be 4px oversized and out of alignment */
29-
display: inherit;
3028

3129
.mx_BaseAvatar {
3230
pointer-events: none; /* makes the avatar non-draggable */

res/css/views/avatars/_BaseAvatar.pcss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ limitations under the License.
1616

1717
.mx_BaseAvatar {
1818
position: relative;
19-
/* In at least Firefox, the case of relative positioned inline elements */
20-
/* (such as mx_BaseAvatar) with absolute positioned children (such as */
21-
/* mx_BaseAvatar_initial) is a dark corner full of spider webs. It will give */
22-
/* different results during full reflow of the page vs. incremental reflow */
23-
/* of small portions. While that's surely a browser bug, we can avoid it by */
24-
/* using `inline-block` instead of the default `inline`. */
25-
/* https://github.com/vector-im/element-web/issues/5594 */
26-
/* https://bugzilla.mozilla.org/show_bug.cgi?id=1535053 */
27-
/* https://bugzilla.mozilla.org/show_bug.cgi?id=255139 */
28-
display: inline-block;
19+
display: block;
2920
user-select: none;
3021

3122
&.mx_RoomAvatar_isSpaceRoom {

0 commit comments

Comments
 (0)