/* React 版布局调整:左侧菜单固定不动,右侧内容区独立滚动 说明:原应用 header 实际高度为 80px(002.css 顶层覆盖 001.css 的 90px),现压缩为 65px(上下 padding 减半), 且原 sticky 规则依赖 body>header 直属结构,融合到平台后改由模块根容器 .wuc-root 承载(不触碰全局 html/body)。 */ /* ===== 桌面端(>900px):锁定视口,左栏与 header 固定,main 内部滚动 ===== */ @media (min-width: 901px) { .wuc-root { height: 100vh; display: flex; flex-direction: column; overflow: hidden; } .wuc-root > header { height: 65px; /* 原 80px:上下 padding 15px 减半为 7.5px(内容区 50px 不变) */ padding-top: 7.5px; padding-bottom: 7.5px; flex-shrink: 0; } .app-shell { height: calc(100vh - 65px); min-height: 0; overflow: hidden; flex: 1; } .app-shell aside { height: 100%; overflow-y: auto; box-sizing: border-box; } .app-shell main { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; } /* 页面标题与流程轨道固定,不随内容滚动 */ .app-shell main .workspace-banner { flex-shrink: 0; } .app-shell main > #content { flex: 1; min-height: 0; overflow-y: auto; } /* 需求解析页:左右两栏等高充满内容区,各自溢出内部滚动 */ .app-shell main > #content[data-view='1'] { overflow: hidden; display: flex; } .app-shell main > #content[data-view='1'] .demand-grid { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); } .app-shell main > #content[data-view='1'] .demand-grid > .panel { min-height: 0; overflow-y: auto; } } /* ===== 窄屏(≤900px):沿用原 block 布局 + 整页滚动,仅补偿 header 置顶 ===== */ @media (max-width: 900px) { .wuc-root > header { position: sticky; top: 0; z-index: 40; background-color: var(--bg); } } /* 打印时放开视口锁定,避免内容被裁剪 */ @media print { .wuc-root { height: auto; overflow: visible; } } /* 页面标题行:h1 与页面动作按钮同行,紧凑按钮样式 */ #titlebar .title-line { display: flex; align-items: center; gap: 12px; } #titlebar .title-line h1 { margin: 0; } .wuc-root .btn-sm { flex-shrink: 0; font-size: 12px; padding: 4px 12px; } /* 原 002.css 依赖 body>header 的层级补偿(header 现位于模块根容器内) */ .wuc-root header .head-name, .wuc-root header .head-status, .wuc-root header > button { position: relative; } /* React 条件渲染的 toast(覆盖原 #toast{display:none!important}) */ #toast.is-visible { display: block !important; }