代码修改

This commit is contained in:
fengxiangdebaozi committed 2026-05-29 18:07:45 +08:00
1 parent 8ed3b0eb91
commit 786ddaa38f
9 files changed
+293 -173

No files matched your search

+9 -5
View File
@@ -24,10 +24,7 @@ function PageLayout() {
<div className="flex flex-1 overflow-hidden">
{sidebarEnabled && (
isDark ? (
<PageSidebarDark
collapsed={collapsed}
onToggleCollapsed={() => setCollapsed((prev) => !prev)}
/>
<PageSidebarDark />
) : (
<PageSidebar
collapsed={collapsed}
@@ -37,7 +34,13 @@ function PageLayout() {
)}
<main
className={`flex-1 overflow-hidden transition-[padding] duration-300 ${
!sidebarEnabled ? "" : collapsed ? "pl-16" : "pl-64"
!sidebarEnabled
? ""
: isDark
? "pl-[118px]"
: collapsed
? "pl-16"
: "pl-64"
}`}
>
<Routes>
@@ -50,6 +53,7 @@ function PageLayout() {
pageSidebarHidden={!sidebarEnabled}
headerHidden={!sidebarEnabled}
compactWorkspaceSidebar={sidebarEnabled}
pageSidebarDark={isDark}
/>
}
/>