From 41585b128b6283a77511deea46c7081e7837162f Mon Sep 17 00:00:00 2001 From: EveSunMaple Date: Wed, 7 Aug 2024 16:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Fix=20Card?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ src/components/CategoryCard.astro | 33 ++++++++++++++++--------------- src/components/TagCard.astro | 32 ++++++++++++++++-------------- 3 files changed, 38 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 481aa4b..3dcb38d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -316,3 +316,7 @@ - 修改了卡片样式 - 修改了链接样式 - 清理了原评论系统中不必要的代码 + +### Fix + +- 修复了部分手机导航栏无法跳转的问题 diff --git a/src/components/CategoryCard.astro b/src/components/CategoryCard.astro index 6f55b74..f7ac3b4 100644 --- a/src/components/CategoryCard.astro +++ b/src/components/CategoryCard.astro @@ -24,21 +24,22 @@ export async function getTagsWithCounts(): Promise { const tagsWithCounts = await getTagsWithCounts(); --- -
-
- {infoTest.categoryCard} +
+
+
+ {infoTest.categoryCard} +
+
+
+ { + tagsWithCounts.map(({ category, count }) => ( + + + {category} +
{count}
+
+
+ )) + }
- { - tagsWithCounts.map(({ category, count }) => ( - - - {category} -
{count}
-
-
- )) - }
- diff --git a/src/components/TagCard.astro b/src/components/TagCard.astro index 6edbd9c..a20c744 100644 --- a/src/components/TagCard.astro +++ b/src/components/TagCard.astro @@ -24,20 +24,22 @@ export async function getTagsWithCounts(): Promise { const tagsWithCounts = await getTagsWithCounts(); --- -
-
- {infoTest.tagCard} +
+
+
+ {infoTest.tagCard} +
+
+
+ { + tagsWithCounts.map(({ tag, count }) => ( + + + {tag} +
{count}
+
+
+ )) + }
- { - tagsWithCounts.map(({ tag, count }) => ( - - - {tag} -
{count}
-
-
- )) - }