生产管理系统前端 - 页面主区域滚动条fix
This commit is contained in:
@@ -222,7 +222,7 @@ export function SideBarOld({
|
||||
return (
|
||||
<div className={cn(
|
||||
"flex h-full bg-background",
|
||||
"min-h-screen"
|
||||
"min-h-0" // 确保父容器有正确的高度约束
|
||||
)}>
|
||||
{/* 左侧导航栏 - 独立滚动 */}
|
||||
{!isMobile && (
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user