fix: update Tag component size variants for consistency

This commit is contained in:
fiatcode 2026-01-22 17:52:59 +07:00
parent c5e26d83c1
commit f4e1539889
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ const { title, description, date, tags } = Astro.props;
{ {
tags?.map((tag) => ( tags?.map((tag) => (
<li> <li>
<Tag name={tag} /> <Tag name={tag} variant="small" />
</li> </li>
)) ))
} }

View file

@ -9,7 +9,7 @@ interface Props {
const { name, count, href, variant = "default" } = Astro.props; const { name, count, href, variant = "default" } = Astro.props;
const linkHref = href || `/tags/${name}`; const linkHref = href || `/tags/${name}`;
const isSmall = variant === "small"; const isSmall = variant === "small";
const textSize = isSmall ? "text-xs" : "text-sm"; const textSize = isSmall ? "text-sm" : "text-base";
--- ---
<a href={linkHref}> <a href={linkHref}>