|
240 | 240 | </div> |
241 | 241 | {/if} |
242 | 242 |
|
243 | | - <div class="flex not-prose my-1.5"> |
| 243 | + <div class="flex not-prose mb-1.5 mt-auto"> |
244 | 244 | <Dropdown |
245 | 245 | btnLabel="" |
246 | 246 | classNames="hidden md:block" |
247 | 247 | noBtnClass |
248 | 248 | useDeprecatedJS={false} |
249 | 249 | forceMenuAlignement="right" |
250 | | - dontCloseIds={["stream-checkbox"]} |
251 | 250 | > |
252 | 251 | <slot slot="button"> |
253 | | - <button class="btn h-7 gap-1 px-1.5 py-0.5 md:px-2" title="Settings dropdown"> |
254 | | - <IconSettings /> |
| 252 | + <button |
| 253 | + class="text-md flex select-none items-center rounded-lg border px-1.5 py-1 leading-none hover:shadow-xs cursor-pointer text-gray-500 opacity-90 hover:text-gray-700 dark:hover:text-gray-200" |
| 254 | + type="button" |
| 255 | + title="Settings dropdown" |
| 256 | + > |
| 257 | + <IconSettings classNames="mr-1" /> |
255 | 258 | Settings |
256 | 259 | </button> |
257 | 260 | </slot> |
258 | 261 | <slot slot="menu"> |
259 | 262 | <div class="flex flex-col p-2 gap-y-2"> |
260 | 263 | {#if model.tags.includes("conversational")} |
261 | | - <div |
262 | | - class="text-md group relative flex items-center self-start leading-tight gap-x-2 border-b w-full pb-2" |
| 264 | + <button |
| 265 | + class="text-md group relative flex items-center self-start leading-tight gap-x-2 border-b w-full pb-2 cursor-default do-not-close-dropdown" |
| 266 | + on:click={() => (streaming = !streaming)} |
| 267 | + type="button" |
263 | 268 | > |
264 | 269 | <input |
265 | | - class="form-input not-prose" |
| 270 | + class="form-input not-prose do-not-close-dropdown" |
266 | 271 | type="checkbox" |
267 | 272 | bind:checked={streaming} |
268 | 273 | id="stream-checkbox" |
269 | 274 | /> |
270 | | - <span class="">Stream</span> |
271 | | - </div> |
| 275 | + <span class="do-not-close-dropdown">Stream</span> |
| 276 | + </button> |
272 | 277 | {/if} |
273 | 278 | <a |
274 | 279 | href="/settings/tokens" |
|
290 | 295 | </div> |
291 | 296 | </slot> |
292 | 297 | </Dropdown> |
293 | | - <Dropdown |
294 | | - classNames="md:hidden" |
295 | | - noBtnClass |
296 | | - useDeprecatedJS={false} |
297 | | - forceMenuAlignement="left" |
298 | | - dontCloseIds={["stream-checkbox"]} |
299 | | - > |
| 298 | + <Dropdown classNames="md:hidden" noBtnClass useDeprecatedJS={false} forceMenuAlignement="left"> |
300 | 299 | <slot slot="button"> |
301 | | - <button class="btn h-7 gap-1 px-1.5 py-0.5 md:px-2" title="Settings dropdown"> |
302 | | - <IconSettings /> |
| 300 | + <button |
| 301 | + class="text-md flex select-none items-center rounded-lg border px-1.5 py-1 leading-none hover:shadow-xs cursor-pointer text-gray-500 opacity-90 hover:text-gray-700 dark:hover:text-gray-200" |
| 302 | + type="button" |
| 303 | + title="Settings dropdown" |
| 304 | + > |
| 305 | + <IconSettings classNames="mr-1" /> |
303 | 306 | Settings |
304 | 307 | </button> |
305 | 308 | </slot> |
306 | 309 | <slot slot="menu"> |
307 | 310 | <div class="flex flex-col p-2 gap-y-2"> |
308 | 311 | {#if model.tags.includes("conversational")} |
309 | | - <div |
310 | | - class="text-md group relative flex items-center self-start leading-tight gap-x-2 border-b w-full pb-2" |
| 312 | + <button |
| 313 | + class="text-md group relative flex items-center self-start leading-tight gap-x-2 border-b w-full pb-2 cursor-default do-not-close-dropdown" |
| 314 | + on:click={() => (streaming = !streaming)} |
| 315 | + type="button" |
311 | 316 | > |
312 | 317 | <input |
313 | | - class="form-input not-prose" |
| 318 | + class="form-input not-prose do-not-close-dropdown" |
314 | 319 | type="checkbox" |
315 | 320 | bind:checked={streaming} |
316 | | - id="stream-checkbox" |
317 | 321 | /> |
318 | | - <span class="">Stream</span> |
319 | | - </div> |
| 322 | + <span class="do-not-close-dropdown">Stream</span> |
| 323 | + </button> |
320 | 324 | {/if} |
321 | 325 | <a |
322 | 326 | href="/settings/tokens" |
|
338 | 342 | </div> |
339 | 343 | </slot> |
340 | 344 | </Dropdown> |
341 | | - <div class="flex-grow" /> |
| 345 | + <div class="flex-grow md:hidden" /> |
342 | 346 | </div> |
343 | 347 | </div> |
344 | 348 |
|
|
0 commit comments