fix copy on shortcut view

This commit is contained in:
Faisal Amir 2024-01-07 19:48:35 +07:00
parent 548203c8aa
commit 73566e3907
2 changed files with 11 additions and 5 deletions

View File

@ -68,7 +68,7 @@ const BottomBar = () => {
className="cursor-pointer rounded-md border-none font-medium"
onClick={() => setShowSelectModelModal((show) => !show)}
>
My Models 
My Models
<ShortCut menu="E" />
</Badge>
@ -86,9 +86,15 @@ const BottomBar = () => {
value={stateModel.model || '-'}
/>
)}
{!stateModel.loading && downloadedModels.length !== 0 && (
<SystemItem titleBold name={'Active model'} value={activeModel?.id} />
)}
{!stateModel.loading &&
downloadedModels.length !== 0 &&
activeModel?.id && (
<SystemItem
titleBold
name={'Active model'}
value={activeModel?.id}
/>
)}
{downloadedModels.length === 0 &&
!stateModel.loading &&
downloadStates.length === 0 && (

View File

@ -4,7 +4,7 @@ export default function ShortCut(props: { menu: string }) {
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">
<p>{symbol + ' + ' + menu}</p>
<p>{symbol + menu}</p>
</div>
)
}