mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-06 12:39:01 +00:00
Room list: make room list item scales with large font size (#32523)
* fix(sc): make room list item scale with large font * fix: align room avatar view when using large font * test(sc): add story for large font * test(sc): update snapshots * test(sc): add story with zoom
This commit is contained in:
+3
-2
@@ -177,11 +177,12 @@ export function VirtualizedRoomListView({ vm, renderAvatar, onKeyDown }: Virtual
|
||||
<VirtualizedList
|
||||
context={context}
|
||||
scrollIntoViewOnChange={scrollIntoViewOnChange}
|
||||
initialTopMostItemIndex={activeRoomIndex}
|
||||
// If fixedItemHeight is not set and initialTopMostItemIndex=undefined, virtuoso crashes
|
||||
// Id we don't set it, it works
|
||||
{...(activeRoomIndex !== undefined ? { initialTopMostItemIndex: activeRoomIndex } : {})}
|
||||
data-testid="room-list"
|
||||
role="listbox"
|
||||
aria-label={_t("room_list|list_title")}
|
||||
fixedItemHeight={ROOM_LIST_ITEM_HEIGHT}
|
||||
items={roomIds}
|
||||
getItemComponent={getItemComponent}
|
||||
getItemKey={getItemKey}
|
||||
|
||||
Reference in New Issue
Block a user