Skip to content

Commit 48d7685

Browse files
floriandurosgithub-actions[bot]
authored andcommitted
Room list: make the filter resize correctly (#30788)
* fix: make the filter resize correctly * test: update snapshot (cherry picked from commit 155c0b6)
1 parent 21d24f8 commit 48d7685

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

res/css/views/rooms/RoomListPanel/_RoomListPrimaryFilters.pcss

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
display: none;
1313
}
1414

15-
ul {
16-
margin: unset;
17-
padding: unset;
18-
list-style-type: none;
15+
.mx_RoomListPrimaryFilters_list {
1916
/**
2017
* The InteractionObserver needs the height to be set to work properly.
2118
*/

src/components/views/rooms/RoomListPanel/RoomListPrimaryFilters.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export function RoomListPrimaryFilters({ vm }: RoomListPrimaryFiltersProps): JSX
5959
align="center"
6060
gap="var(--cpd-space-2x)"
6161
wrap="wrap"
62+
className="mx_RoomListPrimaryFilters_list"
6263
ref={ref}
6364
>
6465
{filters.map((filter, i) => (

test/unit-tests/components/views/rooms/RoomListPanel/__snapshots__/RoomListPrimaryFilters-test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`<RoomListPrimaryFilters /> should renders all filters correctly 1`] = `
99
>
1010
<div
1111
aria-label="Room list filters"
12-
class="flex"
12+
class="flex mx_RoomListPrimaryFilters_list"
1313
id="«r0»"
1414
role="listbox"
1515
style="--mx-flex-display: flex; --mx-flex-direction: row; --mx-flex-align: center; --mx-flex-justify: start; --mx-flex-gap: var(--cpd-space-2x); --mx-flex-wrap: wrap;"

0 commit comments

Comments
 (0)