From 922811afd8a484c7d401403554c59db4ddb11295 Mon Sep 17 00:00:00 2001 From: seaHi Date: Wed, 29 Jul 2026 18:18:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=B8=83=E5=B1=80=E7=BB=93=E6=9E=84=E5=B9=B6=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.css | 12 +++++++++++- src/routes/+layout.svelte | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/app.css b/src/app.css index 91731dc..ecbcc15 100644 --- a/src/app.css +++ b/src/app.css @@ -34,7 +34,17 @@ body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--text-color); - line-height: 1.8; + line-height: 1.8; +} + +.frontend-layout { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +.frontend-layout > main { + flex: 1 0 auto; } h1, h2, h3, h4, h5, h6 { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 94a80d7..cd43136 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -34,6 +34,7 @@ {#if $page.url.pathname.startsWith('/admin')} {@render children()} {:else} +
@@ -83,4 +83,5 @@
+ {/if}