diff --git a/src/app/globals.css b/src/app/globals.css index ed5cc99..d85e37d 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -112,6 +112,40 @@ --sidebar-ring: oklch(0.551 0.027 264.364); } +/* 全局样式重置 */ +html, body { + margin: 0; + padding: 0; + height: 100%; +} + +/* 容器样式优化 */ +.container { + width: 100%; + max-width: none; + padding: 0; + margin: 0; +} + +/* 滚动条样式优化 */ +::-webkit-scrollbar { + width: 8px; +} + +::-webkit-scrollbar-track { + background: transparent; +} + +::-webkit-scrollbar-thumb { + background: #e5e7eb; + border-radius: 4px; +} + +/* 动画过渡效果 */ +.transition-all { + transition: all 0.2s ease; +} + @layer base { * { @apply border-border outline-ring/50; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ee8f954..c8e3304 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,9 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; -import "./globals.css"; +import '@/app/globals.css' +// 新增样式导入 +import sidebarStyles from '@/app/sidebar.module.css' + const geistSans = Geist({ variable: "--font-geist-sans", @@ -12,11 +15,6 @@ const geistMono = Geist_Mono({ subsets: ["latin"], }); -export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; - export default function RootLayout({ children, }: Readonly<{ @@ -28,17 +26,24 @@ export default function RootLayout({ className={`${geistSans.variable} ${geistMono.variable} antialiased`} >
流程图编辑区域 - 可拖拽节点将出现在这里
-