From c4b09be8bcfc5f55201ee455a2c2900b15a84a3a Mon Sep 17 00:00:00 2001 From: Cassidy Williams <1454517+cassidoo@users.noreply.github.com> Date: Sat, 27 Jan 2024 00:02:20 -0600 Subject: [PATCH] Make tags container flex --- src/components/Tags.astro | 2 +- src/style/global.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Tags.astro b/src/components/Tags.astro index b29462a..ea6bf19 100644 --- a/src/components/Tags.astro +++ b/src/components/Tags.astro @@ -3,7 +3,7 @@ const { tags, all } = Astro.props; --- {all &&

View posts by tag

} -
+
{ tags && tags.map((tag) => ( diff --git a/src/style/global.css b/src/style/global.css index d3d1d2e..d7c9d17 100644 --- a/src/style/global.css +++ b/src/style/global.css @@ -146,6 +146,11 @@ ul.tags-list { font-size: 1.3em; } +.tags { + display: flex; + flex-wrap: wrap; + justify-content: center; +} .tag { display: inline-block; margin-right: 20px;