From fb9ec678371e0441c9748cf4dad24a2819ebb719 Mon Sep 17 00:00:00 2001 From: yezian Date: Thu, 13 Mar 2025 20:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B0=BA=E5=AF=B8=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 9 +++++++++ app/layout.js | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/app/globals.css b/app/globals.css index c1534fd..269bffb 100644 --- a/app/globals.css +++ b/app/globals.css @@ -10,4 +10,13 @@ body { color: var(--foreground); background: var(--background); + min-height: 100vh; + display: flex; + flex-direction: column; +} + +/* 确保在所有设备上保持移动端的体验 */ +html, body { + overflow-x: hidden; + width: 100%; } diff --git a/app/layout.js b/app/layout.js index c8d9ae5..430b388 100644 --- a/app/layout.js +++ b/app/layout.js @@ -18,7 +18,9 @@ export default function RootLayout({ children }) { return ( - {children} +
+
{children}
+