|
98 | 98 | >
|
99 | 99 | <div class="flex w-full max-w-[600px] items-start justify-center p-10">
|
100 | 100 | <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" |
102 | 102 | bind:this={containerEl}
|
103 | 103 | >
|
104 |
| - <div class="flex items-center border-b px-3"> |
| 104 | + <div class="flex items-center border-b px-3 dark:border-gray-800"> |
105 | 105 | <IconSearch classNames="mr-2 text-sm" />
|
106 | 106 | <input
|
107 | 107 | autofocus
|
|
118 | 118 | {@const [nameSpace, modelName] = model.id.split("/")}
|
119 | 119 | <button
|
120 | 120 | 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' |
122 | 122 | : ''}"
|
123 | 123 | on:mouseenter={() => highlightRow(idx)}
|
124 | 124 | on:click={() => {
|
|
128 | 128 | >
|
129 | 129 | <IconStar classNames="lucide lucide-star mr-2 h-4 w-4 text-yellow-400" />
|
130 | 130 | <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 |
134 | 134 | >
|
135 | 135 | </button>
|
136 | 136 | {/each}
|
137 | 137 | </div>
|
138 | 138 | </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> |
140 | 140 | <div class="p-1">
|
141 | 141 | <div class="px-2 py-1.5 text-xs font-medium text-gray-500">Other Models</div>
|
142 | 142 | <div>
|
|
145 | 145 | {@const idx = featuredModels.length + _idx}
|
146 | 146 | <button
|
147 | 147 | 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' |
149 | 149 | : ''}"
|
150 | 150 | on:mouseenter={() => highlightRow(idx)}
|
151 | 151 | on:click={() => {
|
|
154 | 154 | }}
|
155 | 155 | >
|
156 | 156 | <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 |
160 | 160 | >
|
161 | 161 | </button>
|
162 | 162 | {/each}
|
|
0 commit comments