Skip to content

Commit

Permalink
fix copy on shortcut view
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 8, 2024
1 parent 548203c commit 73566e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions web/containers/Layout/BottomBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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 && (
Expand Down
2 changes: 1 addition & 1 deletion web/containers/Shortcut/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
}

0 comments on commit 73566e3

Please sign in to comment.