增加尺寸限制
This commit is contained in:
parent
c281d1e008
commit
fb9ec67837
|
@ -10,4 +10,13 @@
|
||||||
body {
|
body {
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
background: var(--background);
|
background: var(--background);
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 确保在所有设备上保持移动端的体验 */
|
||||||
|
html, body {
|
||||||
|
overflow-x: hidden;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,9 @@ export default function RootLayout({ children }) {
|
||||||
return (
|
return (
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<body>
|
<body>
|
||||||
{children}
|
<div className="w-full flex justify-center">
|
||||||
|
<div className="w-[480px]">{children}</div>
|
||||||
|
</div>
|
||||||
<Toaster
|
<Toaster
|
||||||
toastOptions={{
|
toastOptions={{
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
|
|
Loading…
Reference in New Issue