From 0d9ce0721f7777758482773ac2593f4444c64fe1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 2 Jul 2020 14:11:31 -0600 Subject: [PATCH] Don't include empty badge container in minimized view Fixes https://github.com/vector-im/riot-web/issues/14294 It takes up space, and it won't hold anything anyways. --- src/components/views/rooms/RoomTile2.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/views/rooms/RoomTile2.tsx b/src/components/views/rooms/RoomTile2.tsx index 2647a24412..92c69e54e7 100644 --- a/src/components/views/rooms/RoomTile2.tsx +++ b/src/components/views/rooms/RoomTile2.tsx @@ -369,11 +369,15 @@ export default class RoomTile2 extends React.Component { let badge: React.ReactNode; if (!this.props.isMinimized) { - badge = ; + badge = ( +
+ +
+ ); } // TODO: the original RoomTile uses state for the room name. Do we need to? @@ -429,9 +433,7 @@ export default class RoomTile2 extends React.Component { > {roomAvatar} {nameContainer} -
- {badge} -
+ {badge} {this.renderNotificationsMenu()} {this.renderGeneralMenu()}