Skip to content

Commit 702224e

Browse files
authored
fix(ui): wrap list toolbars instead of clipping their filters and counts (#1349)
The list toolbar was one fixed-height row, so pages with many filters or counts pushed them past the right edge. The search box now shrinks first and the toolbar then wraps onto further rows.
1 parent 8501371 commit 702224e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎ui/src/lib/components/list/list-toolbar.svelte‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,21 @@
4141
</div>
4242

4343
<style>
44+
/* The search box shrinks first; past that the toolbar wraps onto more rows instead of clipping. */
4445
.list-toolbar {
4546
display: flex;
46-
height: 50px;
47-
flex: 0 0 50px;
47+
min-height: 50px;
48+
flex: 0 0 auto;
49+
flex-wrap: wrap;
4850
align-items: center;
49-
gap: 6px;
50-
padding: 0 20px;
51+
gap: 8px 6px;
52+
padding: 8px 20px;
5153
border-bottom: 1px solid var(--border);
5254
}
5355
.list-search {
5456
display: flex;
55-
width: 280px;
57+
flex: 1 1 180px;
58+
max-width: 280px;
5659
height: 30px;
5760
align-items: center;
5861
gap: 7px;
@@ -87,6 +90,7 @@
8790
}
8891
.list-filters {
8992
display: flex;
93+
flex-wrap: wrap;
9094
align-items: center;
9195
gap: 2px;
9296
}

0 commit comments

Comments
 (0)