bug: fix tag description showing a title and fix card right panel
This commit is contained in:
parent
9e6fdf8c94
commit
004b7b8a64
@ -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'
|
||||
)}
|
||||
>
|
||||
@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@ -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>
|
||||
))}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user