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" 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 &&

View File

@ -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>
) )
} }