Apply more general fix for base avatar regressions (#10045)

pull/28788/head^2
Michael Telatynski 2023-02-01 14:51:40 +00:00 committed by GitHub
parent 7feb5b1f6b
commit 371a3c0d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 12 deletions

View File

@ -25,8 +25,6 @@ limitations under the License.
.mx_UserMenu_userAvatar {
position: relative;
/* without this a default avatar will cause this to be 4px oversized and out of alignment */
display: inherit;
.mx_BaseAvatar {
pointer-events: none; /* makes the avatar non-draggable */

View File

@ -16,16 +16,7 @@ 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/element-web/issues/5594 */
/* https://bugzilla.mozilla.org/show_bug.cgi?id=1535053 */
/* https://bugzilla.mozilla.org/show_bug.cgi?id=255139 */
display: inline-block;
display: block;
user-select: none;
&.mx_RoomAvatar_isSpaceRoom {