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"
|
||||
onClick={() => setShowSelectModelModal((show) => !show)}
|
||||
>
|
||||
My Models
|
||||
My Models
|
||||
<ShortCut menu="E" />
|
||||
</Badge>
|
||||
|
||||
@ -86,8 +86,14 @@ 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 &&
|
||||
|
||||
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user