Spaces:
Running
Running
dark mode
Browse files
src/lib/components/model/SettingsModel.svelte
CHANGED
|
@@ -70,9 +70,11 @@
|
|
| 70 |
<Dialog.Title>Model Settings</Dialog.Title>
|
| 71 |
<Dialog.Description>Manage your model settings.</Dialog.Description>
|
| 72 |
</Dialog.Header>
|
| 73 |
-
<section
|
|
|
|
|
|
|
| 74 |
<aside
|
| 75 |
-
class="flex min-h-0 max-w-64 min-w-64 flex-1 flex-col overflow-hidden overflow-y-auto border-r border-border bg-accent p-3.5 max-lg:hidden"
|
| 76 |
>
|
| 77 |
<div class="min-h-0 flex-1">
|
| 78 |
<Input
|
|
@@ -97,8 +99,8 @@
|
|
| 97 |
{#each modelsFiltered as mdl}
|
| 98 |
<button
|
| 99 |
class="{mdl.id === model?.id
|
| 100 |
-
? 'from-blue-500/20 to-blue-500/5
|
| 101 |
-
: ''} flex w-full cursor-pointer items-center gap-2 rounded-md bg-linear-to-r from-
|
| 102 |
onclick={() => (model = mdl)}
|
| 103 |
>
|
| 104 |
<img
|
|
@@ -120,7 +122,7 @@
|
|
| 120 |
<article class="min-h-0 flex-1 overflow-y-auto">
|
| 121 |
{#if model}
|
| 122 |
<header
|
| 123 |
-
class="mb-4 flex items-center justify-between gap-3 border-b border-border bg-white px-4 py-3"
|
| 124 |
>
|
| 125 |
<div class="flex items-center justify-start gap-3">
|
| 126 |
<img
|
|
|
|
| 70 |
<Dialog.Title>Model Settings</Dialog.Title>
|
| 71 |
<Dialog.Description>Manage your model settings.</Dialog.Description>
|
| 72 |
</Dialog.Header>
|
| 73 |
+
<section
|
| 74 |
+
class="flex min-h-0 items-stretch justify-start overflow-hidden lg:max-h-[50vh] lg:min-h-[50vh]"
|
| 75 |
+
>
|
| 76 |
<aside
|
| 77 |
+
class="flex min-h-0 max-w-64 min-w-64 flex-1 flex-col overflow-hidden overflow-y-auto border-r border-border bg-accent p-3.5 max-lg:hidden dark:bg-gray-900/50"
|
| 78 |
>
|
| 79 |
<div class="min-h-0 flex-1">
|
| 80 |
<Input
|
|
|
|
| 99 |
{#each modelsFiltered as mdl}
|
| 100 |
<button
|
| 101 |
class="{mdl.id === model?.id
|
| 102 |
+
? 'from-blue-500/20 to-blue-500/5 dark:from-blue-500/50 dark:to-blue-500/20'
|
| 103 |
+
: 'hover:from-accent-foreground/10 hover:to-accent-foreground/0 dark:hover:from-blue-500/20! dark:hover:to-blue-500/5!'} flex w-full cursor-pointer items-center gap-2 rounded-md bg-linear-to-r from-transparent to-transparent px-2.5 py-2 text-left text-xs transition-all duration-300"
|
| 104 |
onclick={() => (model = mdl)}
|
| 105 |
>
|
| 106 |
<img
|
|
|
|
| 122 |
<article class="min-h-0 flex-1 overflow-y-auto">
|
| 123 |
{#if model}
|
| 124 |
<header
|
| 125 |
+
class="mb-4 flex items-center justify-between gap-3 border-b border-border bg-white px-4 py-3 dark:bg-gray-900/50"
|
| 126 |
>
|
| 127 |
<div class="flex items-center justify-start gap-3">
|
| 128 |
<img
|