fix: improve Tag component by making it entire component clickable (#598)

Update Tag component structure/styles and make the entire
component clickable
This commit is contained in:
Sat Naing
2026-01-04 20:43:46 +07:00
committed by GitHub
parent 312d1c3eed
commit f5f863f9d2
3 changed files with 19 additions and 20 deletions
+4 -4
View File
@@ -15,10 +15,10 @@ import IconChevronLeft from "@/assets/icons/IconChevronLeft.svg";
import IconChevronRight from "@/assets/icons/IconChevronRight.svg";
import { SITE } from "@/config";
export interface Props {
type Props = {
post: CollectionEntry<"blog">;
posts: CollectionEntry<"blog">[];
}
};
const { post, posts } = Astro.props;
@@ -118,8 +118,8 @@ const nextPost =
<EditPost class="sm:hidden" {hideEditPost} {post} />
<ul class="mt-4 mb-8 sm:my-8">
{tags.map(tag => <Tag tag={slugifyStr(tag)} tagName={tag} />)}
<ul class="mt-4 mb-8 flex flex-wrap gap-4 sm:my-8">
{tags.map(tag => <Tag tag={slugifyStr(tag)} tagName={tag} size="sm" />)}
</ul>
<BackToTopButton />