Skip to content

Commit 5d92d04

Browse files
committed
search box support dark mode
1 parent df520ff commit 5d92d04

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@
9898
>
9999
<div class="flex w-full max-w-[600px] items-start justify-center p-10">
100100
<div
101-
class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md"
101+
class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300"
102102
bind:this={containerEl}
103103
>
104-
<div class="flex items-center border-b px-3">
104+
<div class="flex items-center border-b px-3 dark:border-gray-800">
105105
<IconSearch classNames="mr-2 text-sm" />
106106
<input
107107
autofocus
@@ -118,7 +118,7 @@
118118
{@const [nameSpace, modelName] = model.id.split("/")}
119119
<button
120120
class="flex w-full cursor-pointer items-center px-2 py-1.5 text-sm {highlightIdx === idx
121-
? 'highlighted bg-gray-100'
121+
? 'highlighted bg-gray-100 dark:bg-gray-700'
122122
: ''}"
123123
on:mouseenter={() => highlightRow(idx)}
124124
on:click={() => {
@@ -128,15 +128,15 @@
128128
>
129129
<IconStar classNames="lucide lucide-star mr-2 h-4 w-4 text-yellow-400" />
130130
<span class="inline-flex items-center"
131-
><span class="text-gray-500">{nameSpace}</span><span class="mx-1 text-black">/</span><span
132-
class="text-black">{modelName}</span
133-
></span
131+
><span class="text-gray-500 dark:text-gray-400">{nameSpace}</span><span
132+
class="mx-1 text-black dark:text-white">/</span
133+
><span class="text-black dark:text-white">{modelName}</span></span
134134
>
135135
</button>
136136
{/each}
137137
</div>
138138
</div>
139-
<div class="mx-1 h-px bg-gray-200"></div>
139+
<div class="mx-1 h-px bg-gray-200 dark:bg-gray-700"></div>
140140
<div class="p-1">
141141
<div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
142142
<div>
@@ -145,7 +145,7 @@
145145
{@const idx = featuredModels.length + _idx}
146146
<button
147147
class="flex w-full cursor-pointer items-center px-2 py-1.5 text-sm {highlightIdx === idx
148-
? 'highlighted bg-gray-100'
148+
? 'highlighted bg-gray-100 dark:bg-gray-700'
149149
: ''}"
150150
on:mouseenter={() => highlightRow(idx)}
151151
on:click={() => {
@@ -154,9 +154,9 @@
154154
}}
155155
>
156156
<span class="inline-flex items-center"
157-
><span class="text-gray-500">{nameSpace}</span><span class="mx-1 text-black">/</span><span
158-
class="text-black">{modelName}</span
159-
></span
157+
><span class="text-gray-500 dark:text-gray-400">{nameSpace}</span><span
158+
class="mx-1 text-black dark:text-white">/</span
159+
><span class="text-black dark:text-white">{modelName}</span></span
160160
>
161161
</button>
162162
{/each}

0 commit comments

Comments
 (0)