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:
Florian Duros
2026-02-18 19:14:43 +01:00
committed by GitHub
parent 6c0d131652
commit e8d97a9b5a
11 changed files with 151 additions and 116 deletions
@@ -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}