From 2a9f9e38e131c405d166fd003c466b51791fa1dc Mon Sep 17 00:00:00 2001 From: David Langley Date: Mon, 21 Jul 2025 17:05:44 +0100 Subject: [PATCH] Fix mad merge --- .../rooms/RoomListPanel/RoomListItemView.tsx | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/src/components/views/rooms/RoomListPanel/RoomListItemView.tsx b/src/components/views/rooms/RoomListPanel/RoomListItemView.tsx index 7760fb911f..a0259d0a6a 100644 --- a/src/components/views/rooms/RoomListPanel/RoomListItemView.tsx +++ b/src/components/views/rooms/RoomListPanel/RoomListItemView.tsx @@ -55,8 +55,7 @@ export const RoomListItemView = memo(function RoomListItemView({ }, []); const content = ( - setIsHoverWithDelay(false, 10)} tabIndex={isActive ? 0 : -1} - gap="var(--cpd-space-3x)" - align="center" {...props} > - - - {/* We truncate the room name when too long. Title here is to show the full name on hover */} -
-
- {vm.name} -
- {vm.messagePreview && ( -
- {vm.messagePreview} + {/* We need this extra div between the button and the content in order to add a padding which is not messing with the virtualized list */} + + + + {/* We truncate the room name when too long. Title here is to show the full name on hover */} +
+
+ {vm.name}
- )} -
- {showHoverMenu ? ( - (isOpen ? setIsMenuOpen(true) : closeMenu())} - /> - ) : ( - <> - {/* aria-hidden because we summarise the unread count/notification status in a11yLabel variable */} - {vm.showNotificationDecoration && ( - + {vm.messagePreview && ( +
+ {vm.messagePreview} +
)} - - )} +
+ {showHoverMenu ? ( + (isOpen ? setIsMenuOpen(true) : closeMenu())} + /> + ) : ( + <> + {/* aria-hidden because we summarise the unread count/notification status in a11yLabel variable */} + {vm.showNotificationDecoration && ( + + )} + + )} + - + ); if (!vm.showContextMenu) return content;