From 74fa3b2c8148eb082c052c88741b78d19cc9d10f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 9 Jul 2020 10:39:53 -0600 Subject: [PATCH] Fix rough badge alignment for community invite tiles again Fixes https://github.com/vector-im/riot-web/issues/14392 --- res/css/views/avatars/_DecoratedRoomAvatar.scss | 2 +- res/css/views/rooms/_RoomTile2.scss | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/res/css/views/avatars/_DecoratedRoomAvatar.scss b/res/css/views/avatars/_DecoratedRoomAvatar.scss index b500d44a43..900f351074 100644 --- a/res/css/views/avatars/_DecoratedRoomAvatar.scss +++ b/res/css/views/avatars/_DecoratedRoomAvatar.scss @@ -24,7 +24,7 @@ limitations under the License. right: 0; } - .mx_NotificationBadge { + .mx_NotificationBadge, .mx_RoomTile2_badgeContainer { position: absolute; top: 0; right: 0; diff --git a/res/css/views/rooms/_RoomTile2.scss b/res/css/views/rooms/_RoomTile2.scss index b9e0398e7d..d2d394e266 100644 --- a/res/css/views/rooms/_RoomTile2.scss +++ b/res/css/views/rooms/_RoomTile2.scss @@ -89,7 +89,6 @@ limitations under the License. height: 16px; // don't set width so that it takes no space when there is no badge to show margin: auto 0; // vertically align - position: relative; // fixes badge alignment in some scenarios // Create a flexbox to make aligning dot badges easier display: flex;