From 475746b5e88ff34d52a3ab2ce6274019404beeb0 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sun, 19 Jun 2022 19:29:19 +0900 Subject: [PATCH] Stop using absolute property to place beta pill on RoomPreviewCard Signed-off-by: Suguru Hirahara --- res/css/views/rooms/_RoomPreviewCard.scss | 12 +++++------- src/components/views/rooms/RoomPreviewCard.tsx | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/res/css/views/rooms/_RoomPreviewCard.scss b/res/css/views/rooms/_RoomPreviewCard.scss index 322a8c4251d..782eb292487 100644 --- a/res/css/views/rooms/_RoomPreviewCard.scss +++ b/res/css/views/rooms/_RoomPreviewCard.scss @@ -71,6 +71,11 @@ limitations under the License. color: $secondary-content; } } + + // XXX Remove this when video rooms leave beta + .mx_BetaCard_betaPill { + align-self: start; + } } .mx_RoomPreviewCard_avatar { @@ -105,13 +110,6 @@ limitations under the License. mask-image: url('$(res)/img/element-icons/call/video-call.svg'); } } - - // XXX Remove this when video rooms leave beta - .mx_BetaCard_betaPill { - position: absolute; - right: $spacing-24; - top: $spacing-32; - } } h1.mx_RoomPreviewCard_name { diff --git a/src/components/views/rooms/RoomPreviewCard.tsx b/src/components/views/rooms/RoomPreviewCard.tsx index 65dadc96f6c..132ba6720ea 100644 --- a/src/components/views/rooms/RoomPreviewCard.tsx +++ b/src/components/views/rooms/RoomPreviewCard.tsx @@ -102,6 +102,7 @@ const RoomPreviewCard: FC = ({ room, onJoinButtonClicked, onRejectButton { inviteSender } : null } + ; } @@ -152,7 +153,6 @@ const RoomPreviewCard: FC = ({ room, onJoinButtonClicked, onRejectButton avatarRow = <>
- ; } else if (room.isSpaceRoom()) { avatarRow = ;