Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: fix tag description showing a title and fix card right panel #878

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading