固定后台侧栏滚动布局

This commit is contained in:
yml2213
2026-07-07 19:24:09 +08:00
parent 7be564557b
commit 6b29ff27e1
2 changed files with 15 additions and 1 deletions
@@ -194,7 +194,7 @@ export default function AdminLayout() {
</div>
</div>
</Layout.Sider>
<Layout>
<Layout className="admin-main-shell">
<Layout.Header className="admin-topbar">
<Space className="admin-user" size={12}>
<Dropdown
+14
View File
@@ -55,15 +55,25 @@ select {
}
.admin-shell {
height: 100vh;
min-height: 100vh;
overflow: hidden;
}
.admin-sider {
height: 100vh;
overflow: hidden;
border-right: 1px solid #edf0f5;
box-shadow: 4px 0 18px rgba(15, 23, 42, 0.04);
z-index: 2;
}
.admin-main-shell {
min-width: 0;
min-height: 0;
overflow: hidden;
}
.admin-sider .ant-layout-sider-children {
height: 100%;
}
@@ -178,6 +188,7 @@ select {
}
.admin-topbar {
flex: 0 0 64px;
height: 64px;
display: flex;
align-items: center;
@@ -197,6 +208,9 @@ select {
}
.admin-content {
height: calc(100vh - 64px);
min-height: 0;
overflow: auto;
padding: 20px;
}