|
7 | 7 | import CarbonClose from "~icons/carbon/close"; |
8 | 8 | import CarbonTextLongParagraph from "~icons/carbon/text-long-paragraph"; |
9 | 9 | import CarbonChevronLeft from "~icons/carbon/chevron-left"; |
| 10 | + import CarbonView from "~icons/carbon/view"; |
10 | 11 |
|
11 | 12 | import UserIcon from "~icons/carbon/user"; |
12 | 13 | import type { LayoutData } from "../$types"; |
|
107 | 108 | <button |
108 | 109 | type="button" |
109 | 110 | onclick={() => goto(`${base}/settings/${model.id}`)} |
110 | | - class="group flex h-9 w-full flex-none items-center gap-2 rounded-lg px-3 text-[13px] text-gray-600 hover:bg-gray-100 |
| 111 | + class="group flex h-9 w-full flex-none items-center gap-1 rounded-lg px-3 text-[13px] text-gray-600 hover:bg-gray-100 |
111 | 112 | md:rounded-xl md:px-3 |
112 | 113 | {model.id === page.params.model ? '!bg-gray-100 !text-gray-800' : ''}" |
113 | 114 | aria-label="Configure {model.displayName}" |
114 | 115 | > |
115 | 116 | <div class="mr-auto truncate">{model.displayName}</div> |
116 | 117 |
|
| 118 | + {#if model.multimodal || $settings.multimodalOverrides?.[model.id]} |
| 119 | + <span |
| 120 | + title="Supports image inputs (multimodal)" |
| 121 | + class="grid size-[21px] place-items-center rounded-md border border-blue-700 dark:border-blue-500" |
| 122 | + aria-label="Model is multimodal" |
| 123 | + role="img" |
| 124 | + > |
| 125 | + <CarbonView class="text-xxs text-blue-700 dark:text-blue-500" /> |
| 126 | + </span> |
| 127 | + {/if} |
| 128 | + |
117 | 129 | {#if $settings.customPrompts?.[model.id]} |
118 | 130 | <CarbonTextLongParagraph |
119 | 131 | class="size-6 rounded-md border border-gray-300 p-1 text-gray-800" |
120 | 132 | /> |
121 | 133 | {/if} |
122 | 134 | {#if model.id === $settings.activeModel} |
123 | 135 | <div |
124 | | - class="rounded-md bg-black/90 px-2 py-1 text-[10px] font-semibold leading-none text-white" |
| 136 | + class="flex h-[21px] items-center rounded-md bg-black/90 px-2 text-[10px] font-semibold leading-none text-white" |
125 | 137 | > |
126 | 138 | Active |
127 | 139 | </div> |
|
133 | 145 | <button |
134 | 146 | type="button" |
135 | 147 | onclick={() => goto(`${base}/settings/application`)} |
136 | | - class="group flex h-9 w-full flex-none items-center gap-2 rounded-lg px-3 text-[13px] text-gray-600 hover:bg-gray-100 max-md:order-first md:rounded-xl md:px-3 |
| 148 | + class="group flex h-9 w-full flex-none items-center gap-1 rounded-lg px-3 text-[13px] text-gray-600 hover:bg-gray-100 max-md:order-first md:rounded-xl md:px-3 |
137 | 149 | {page.url.pathname === `${base}/settings/application` ? '!bg-gray-100 !text-gray-800' : ''}" |
138 | 150 | aria-label="Configure application settings" |
139 | 151 | > |
|
0 commit comments