From 390437b4bb526272a8a6f8908d32b0632d74ac25 Mon Sep 17 00:00:00 2001 From: xy <10816187@qq.com> Date: Sat, 15 Aug 2026 21:48:37 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AFui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IndexPage.astro | 4 ++-- src/components/PageHeader.astro | 2 +- src/layouts/Layout.astro | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/IndexPage.astro b/src/components/IndexPage.astro index 0c5b0c9..328855f 100644 --- a/src/components/IndexPage.astro +++ b/src/components/IndexPage.astro @@ -80,8 +80,8 @@ const {posts, page, totalPage} = Astro.props } @media (max-width: 640px) { - .page-content { - gap: 24px; + .intro{ + padding-bottom: 24px; } footer { diff --git a/src/components/PageHeader.astro b/src/components/PageHeader.astro index 778c3dc..173ea1e 100644 --- a/src/components/PageHeader.astro +++ b/src/components/PageHeader.astro @@ -31,7 +31,7 @@ const {siteTitle} = siteConfig; @media (max-width: 640px) { header { - margin-top: 24px; + margin-top: 12px; margin-bottom: 0; } } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index cb4e2e9..cce1a1e 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -45,4 +45,10 @@ const pageTitle = title ? `${title} - ${siteTitle}` : siteTitle; height: 100%; min-height: 100%; } + + @media (max-width: 640px) { + .container { + padding: 16px; + } + }