Merge pull request #4795 from janhq/enhancement/selected-model

enhancement: add checkmark selected model
This commit is contained in:
Faisal Amir 2025-03-11 21:26:27 +07:00 committed by GitHub
commit cce52f012c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@ import {
import { atom, useAtom, useAtomValue, useSetAtom } from 'jotai'
import {
CheckIcon,
ChevronDownIcon,
ChevronUpIcon,
DownloadCloudIcon,
@ -590,6 +591,12 @@ const ModelDropdown = ({
/>
</div>
<div className="flex items-center gap-2 text-[hsla(var(--text-tertiary))]">
{selectedModel?.id === model.id && (
<CheckIcon
size={14}
className="text-[hsla(var(--text-secondary))]"
/>
)}
{!isDownloaded && (
<span className="font-medium">
{toGigabytes(model.metadata?.size)}