enhancement: add checkmark selected model
This commit is contained in:
parent
c000f75593
commit
f2b1d68ab1
@ -15,6 +15,7 @@ import {
|
|||||||
import { atom, useAtom, useAtomValue, useSetAtom } from 'jotai'
|
import { atom, useAtom, useAtomValue, useSetAtom } from 'jotai'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
CheckIcon,
|
||||||
ChevronDownIcon,
|
ChevronDownIcon,
|
||||||
ChevronUpIcon,
|
ChevronUpIcon,
|
||||||
DownloadCloudIcon,
|
DownloadCloudIcon,
|
||||||
@ -590,6 +591,12 @@ const ModelDropdown = ({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2 text-[hsla(var(--text-tertiary))]">
|
<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 && (
|
{!isDownloaded && (
|
||||||
<span className="font-medium">
|
<span className="font-medium">
|
||||||
{toGigabytes(model.metadata?.size)}
|
{toGigabytes(model.metadata?.size)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user