Skip to content

Commit

Permalink
fix: tag styling
Browse files Browse the repository at this point in the history
only show div if got tags
  • Loading branch information
seaerchin committed Dec 3, 2024
1 parent 25815eb commit 884866f
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ export const CollectionCard = ({
<span title={itemTitle}>{itemTitle}</span>
</Link>
</h3>
<div className="flex gap-1.5">
{tags.map(({ label }) => (
<Tag>{label}</Tag>
))}
</div>
{tags && (
<div className="flex gap-1.5">
{tags.map(({ label }) => (
<Tag>{label}</Tag>
))}
</div>
)}
{description && (
<Text className="prose-body-base line-clamp-3" title={description}>
{description}
Expand Down

0 comments on commit 884866f

Please sign in to comment.