生产管理系统前端 - 页面主区域滚动条fix

This commit is contained in:
2025-10-27 11:46:35 +08:00
parent c0ea1fb9f3
commit 5055e40de6
3 changed files with 13 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ export function SideBarOld({
return (
<div className={cn(
"flex h-full bg-background",
"min-h-screen"
"min-h-0" // 确保父容器有正确的高度约束
)}>
{/* 左侧导航栏 - 独立滚动 */}
{!isMobile && (

View File

@@ -62,8 +62,8 @@ export function MainContent({
}
return (
<div className="flex-1 flex flex-col bg-background">
<div className="p-6">
<div className="flex-1 flex flex-col bg-background h-full">
<div className="flex-1 p-6 min-h-0 content-container">
{children}
</div>
</div>