From 2b000f7e5564e86260ee91719e0a82bf2420d497 Mon Sep 17 00:00:00 2001 From: saicaca Date: Mon, 6 Nov 2023 21:56:53 +0800 Subject: [PATCH] fix: style improvements for mobile view --- src/components/TitleCardNew.astro | 6 +++--- src/layouts/Layout.astro | 2 +- src/layouts/MainGridLayout.astro | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/TitleCardNew.astro b/src/components/TitleCardNew.astro index 154afab..e9d400e 100644 --- a/src/components/TitleCardNew.astro +++ b/src/components/TitleCardNew.astro @@ -30,14 +30,14 @@ const { remarkPluginFrontmatter } = await entry.render(); ---
-
+
{title} @@ -59,7 +59,7 @@ const { remarkPluginFrontmatter } = await entry.render(); {hasCover &&
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index d19ce51..0f9144b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -129,7 +129,7 @@ if (title) { @layer components { .banner-home { - @apply h-[var(--banner-height-home)] + @apply h-[var(--banner-height)] md:h-[var(--banner-height-home)] } .banner-else { @apply h-[var(--banner-height)] diff --git a/src/layouts/MainGridLayout.astro b/src/layouts/MainGridLayout.astro index 21d0576..a3e9259 100644 --- a/src/layouts/MainGridLayout.astro +++ b/src/layouts/MainGridLayout.astro @@ -27,7 +27,7 @@ const enableBanner = siteConfig.banner.enable; transition:animate="none" >