Skip to content

Commit 748fa74

Browse files
committed
Make search modal more scaleable
1 parent 6a5ecbb commit 748fa74

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/lib/components/modals/search.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<Modal
1515
class="
16-
w-[80vw] h-[90vh]
16+
max-w-[90rem] w-[95vw] h-[90vh]
1717
bg-surface-100 dark:bg-surface-800
1818
@container/full
1919
"

src/lib/components/search/sourceSelect.svelte

+7-6
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
<div
3232
class="
3333
flex
34-
p-4
34+
px-4 pt-2 @sm/half:p-4
3535
gap-4
3636
"
3737
>
3838
<Search
3939
bind:value={sourceSearch}
40-
placeholder={"Filter sources..."}
41-
inputClass={"w-26"}
42-
containerClass="grow"
40+
placeholder="Filter sources..."
41+
inputClass="w-26"
42+
containerClass="grow @sm/half:flex hidden"
4343
infoText={`${
4444
sourceCategories ? Object.keys(sourceCategories).length : 0
4545
} sources`}
@@ -78,7 +78,7 @@
7878
<ul
7979
class="
8080
space-y-2
81-
p-4
81+
@sm/half:p-4
8282
overflow-x-hidden
8383
overflow-auto
8484
"
@@ -105,7 +105,7 @@
105105
class="
106106
flex
107107
items-center
108-
gap-2
108+
@sm/half:gap-2
109109
110110
cursor-pointer
111111
@@ -168,6 +168,7 @@
168168
rounded-full
169169
170170
{selected ? 'bg-primary-500' : 'border border-tertiary-500'}
171+
hidden @sm/half:hidden
171172
"
172173
>
173174
<Fa

0 commit comments

Comments
 (0)