Skip to content

Commit 51b224d

Browse files
committed
feat(searchfilters): Pin the close button to the top
1 parent cb1d249 commit 51b224d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

frontend/src/lib/components/search/SearchFilters.svelte

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
overflow-y: auto;
279279
max-width: 450px;
280280
min-width: 400px;
281-
padding: var(--size-4);
281+
/* padding: var(--size-4); */
282282
z-index: 10;
283283
}
284284
@@ -301,13 +301,20 @@
301301
302302
section {
303303
margin-block: var(--size-4);
304+
padding-inline: var(--size-4);
304305
}
305306
306307
.filters-header {
307308
align-items: baseline;
309+
background: var(--surface-1);
308310
display: flex;
309311
justify-content: space-between;
310312
margin-block-start: 0;
313+
padding-block-start: var(--size-4);
314+
padding-block-end: var(--size-2);
315+
position: sticky;
316+
top: 0;
317+
z-index: 1;
311318
}
312319
313320
.filters-header h2 {

0 commit comments

Comments
 (0)