fix copy on shortcut view
This commit is contained in:
parent
548203c8aa
commit
73566e3907
@ -68,7 +68,7 @@ const BottomBar = () => {
|
|||||||
className="cursor-pointer rounded-md border-none font-medium"
|
className="cursor-pointer rounded-md border-none font-medium"
|
||||||
onClick={() => setShowSelectModelModal((show) => !show)}
|
onClick={() => setShowSelectModelModal((show) => !show)}
|
||||||
>
|
>
|
||||||
My Models
|
My Models
|
||||||
<ShortCut menu="E" />
|
<ShortCut menu="E" />
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|
||||||
@ -86,8 +86,14 @@ const BottomBar = () => {
|
|||||||
value={stateModel.model || '-'}
|
value={stateModel.model || '-'}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!stateModel.loading && downloadedModels.length !== 0 && (
|
{!stateModel.loading &&
|
||||||
<SystemItem titleBold name={'Active model'} value={activeModel?.id} />
|
downloadedModels.length !== 0 &&
|
||||||
|
activeModel?.id && (
|
||||||
|
<SystemItem
|
||||||
|
titleBold
|
||||||
|
name={'Active model'}
|
||||||
|
value={activeModel?.id}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
{downloadedModels.length === 0 &&
|
{downloadedModels.length === 0 &&
|
||||||
!stateModel.loading &&
|
!stateModel.loading &&
|
||||||
|
|||||||
@ -4,7 +4,7 @@ export default function ShortCut(props: { menu: string }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="inline-flex items-center justify-center rounded-full bg-secondary px-1 py-0.5 text-xs font-bold text-muted-foreground">
|
<div className="inline-flex items-center justify-center rounded-full bg-secondary px-1 py-0.5 text-xs font-bold text-muted-foreground">
|
||||||
<p>{symbol + ' + ' + menu}</p>
|
<p>{symbol + menu}</p>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user