feat: add WorkbenchRail component and update WorkbenchLayout to include it;

This commit is contained in:
mlogclub
2026-06-13 12:04:03 +08:00
parent d22805c4af
commit d9a05a17ca
4 changed files with 68 additions and 6 deletions
+7 -3
View File
@@ -8,6 +8,7 @@ import { useEffect } from "react"
import { useAuth } from "@/components/auth-provider"
import { NotificationProvider } from "@/components/notification-provider"
import { WorkbenchHeader } from "@/components/workbench-header"
import { WorkbenchRail } from "@/components/workbench-rail"
import { useI18n } from "@/i18n/provider"
export default function WorkbenchLayout({
@@ -47,7 +48,7 @@ export default function WorkbenchLayout({
return (
<div
className="flex h-svh min-h-0 flex-col overflow-hidden bg-background"
className="flex h-svh min-h-0 overflow-hidden bg-background"
style={
{
"--header-height": "calc(var(--spacing) * 12)",
@@ -55,8 +56,11 @@ export default function WorkbenchLayout({
}
>
<NotificationProvider>
<WorkbenchHeader />
<main className="flex min-h-0 flex-1 overflow-hidden">{children}</main>
<WorkbenchRail />
<div className="flex min-w-0 flex-1 flex-col overflow-hidden">
<WorkbenchHeader />
<main className="flex min-h-0 flex-1 overflow-hidden">{children}</main>
</div>
</NotificationProvider>
</div>
)