diff --git a/src/app/app/workbench/[id]/page.tsx b/src/app/app/workbench/[id]/page.tsx index a6d0edfb..55baa35c 100644 --- a/src/app/app/workbench/[id]/page.tsx +++ b/src/app/app/workbench/[id]/page.tsx @@ -280,14 +280,13 @@ export default function Home() { return (
{/* 桌面端布局 */} -
+
{/* 移动端布局 */} -
+
diff --git a/src/app/globals.css b/src/app/globals.css index ce3f2f49..7e238fb8 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -136,7 +136,11 @@ } body.workbench-body-lock { - overflow-y: hidden; + position: fixed; + inset: 0; + width: 100%; + overflow: hidden; + overscroll-behavior: none; } diff --git a/src/components/editor/EditorHeader.tsx b/src/components/editor/EditorHeader.tsx index a538e453..67c43468 100644 --- a/src/components/editor/EditorHeader.tsx +++ b/src/components/editor/EditorHeader.tsx @@ -59,7 +59,7 @@ export function EditorHeader({ isMobile }: EditorHeaderProps) { return ( @@ -171,4 +171,3 @@ export function EditorHeader({ isMobile }: EditorHeaderProps) { ); } - diff --git a/src/components/mobile/MobileWorkbench.tsx b/src/components/mobile/MobileWorkbench.tsx index 4ec6dbf1..d8e778b4 100644 --- a/src/components/mobile/MobileWorkbench.tsx +++ b/src/components/mobile/MobileWorkbench.tsx @@ -21,7 +21,7 @@ export function MobileWorkbench() { ); return ( -
+
{/* 主要内容区域 */}
@@ -138,10 +138,12 @@ export function MobileWorkbench() {
{/* 底部导航栏 */} -
- {renderNavItem("content", , "内容")} - {renderNavItem("style", , "样式")} - {renderNavItem("preview", , "预览")} +
+
+ {renderNavItem("content", , "内容")} + {renderNavItem("style", , "样式")} + {renderNavItem("preview", , "预览")} +
); diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 84a53b49..d95b30b5 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -22,7 +22,7 @@ export const Route = createRootRoute({ { charSet: "utf-8" }, { name: "viewport", - content: "width=device-width, initial-scale=1" + content: "width=device-width, initial-scale=1, viewport-fit=cover" }, { title: "Magic Resume" } ],