Skip to content

Commit

Permalink
bug: fix tag description showing a title and fix card right panel
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Dec 6, 2023
1 parent 9e6fdf8 commit 004b7b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
11 changes: 7 additions & 4 deletions web/containers/CardSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ export default function CardSidebar({
return (
<div
className={twMerge(
'flex w-full flex-col rounded-lg border border-border',
show && 'border border-border'
'flex w-full flex-col rounded-md border border-border bg-zinc-200 dark:bg-zinc-600/10'
)}
>
<div
className={twMerge(
'relative flex items-center rounded-t-md bg-zinc-200 dark:bg-zinc-600/10',
'relative flex items-center rounded-t-md ',
show && 'border-b border-border'
)}
>
Expand Down Expand Up @@ -93,7 +92,11 @@ export default function CardSidebar({
</div>
)}
</div>
{show && <div className="flex flex-col gap-2 p-2">{children}</div>}
{show && (
<div className="flex flex-col gap-2 bg-white p-2 dark:bg-background">
{children}
</div>
)}
</div>
)
}
7 changes: 6 additions & 1 deletion web/screens/ExploreModels/ExploreModelItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ const ExploreModelItem = forwardRef<HTMLDivElement, Props>(({ model }, ref) => {
</span>
<div className="mt-2 flex space-x-2">
{model.metadata.tags.map((tag, i) => (
<Badge key={i} themes="primary" className="line-clamp-1">
<Badge
key={i}
themes="primary"
className="line-clamp-1"
title={tag}
>
{tag}
</Badge>
))}
Expand Down

0 comments on commit 004b7b8

Please sign in to comment.