Scroll the rooms header with the search results in room select screen

Move the "Rooms" section header inside the LazyColumn of the search results, so that it scrolls with the list
instead of staying fixed above it, as it is done for the room list when the search is not active.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benoit Marty
2026-10-08 09:35:06 +02:00
parent 7ad1277faf
commit 920e37d097
@@ -201,16 +201,18 @@ fun RoomSelectView(
resultState = state.resultState,
showBackButton = false,
) { summaries ->
if (summaries.isNotEmpty()) {
ListSectionHeader(
title = stringResource(CommonStrings.common_header_rooms),
hasDivider = false,
)
}
LazyColumn(
state = lazyListState,
contentPadding = lazyColumnContentPadding,
) {
if (summaries.isNotEmpty()) {
item {
ListSectionHeader(
title = stringResource(CommonStrings.common_header_rooms),
hasDivider = false,
)
}
}
item {
SelectedRoomsHelper(
selectedRooms = state.selectedRooms,