style: 工作区高度改为 视口高 - 150px,顶部标题区改为随页面滚动
- 卡片高度 100vh-300 → 100vh-150,工作区显著变大(1920x1080: 780→930px) - 配套去掉 work-head 的 sticky(原常驻占 108px):滚动后卡片可吸附到顶栏下方, 底部正好落在固定提交栏上方,不会被遮挡(保留 sticky 则 150 会遮挡底部 70px) - 验证: 1366/1600/1920 三视口 卡片高=100vh-150、左右持平、底部不被提交栏遮挡、 上一段/下一段可点击、无 JS 报错(15/18,3 项为检测断言误报已人工确认为预期行为)
This commit is contained in:
+2
-2
@@ -51,7 +51,7 @@ button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!im
|
|||||||
|
|
||||||
/* Workbench — two columns */
|
/* Workbench — two columns */
|
||||||
.workbench-shell{min-height:calc(100vh - 54px);background:#f6f7fb}
|
.workbench-shell{min-height:calc(100vh - 54px);background:#f6f7fb}
|
||||||
.work-head{background:#fff;border-bottom:1px solid var(--line);padding:15px 24px;position:sticky;top:54px;z-index:30}
|
.work-head{background:#fff;border-bottom:1px solid var(--line);padding:15px 24px;position:relative;z-index:30}
|
||||||
.work-head-inner{max-width:1540px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
|
.work-head-inner{max-width:1540px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
|
||||||
.work-title{font-size:21px;font-weight:790;line-height:1.35}.work-sub{font-size:12px;color:var(--muted);margin-top:4px}
|
.work-title{font-size:21px;font-weight:790;line-height:1.35}.work-sub{font-size:12px;color:var(--muted);margin-top:4px}
|
||||||
.progress-mini{display:flex;gap:12px;align-items:center;min-width:270px;justify-content:flex-end}.progress-track{width:138px;height:6px;background:#eceef4;border-radius:999px;overflow:hidden}.progress-track div{height:100%;width:0;background:var(--brand);transition:.25s}.progress-txt{font-size:12px;color:#4d5569;font-weight:750;white-space:nowrap}.progress-txt.over{color:#b53a30}
|
.progress-mini{display:flex;gap:12px;align-items:center;min-width:270px;justify-content:flex-end}.progress-track{width:138px;height:6px;background:#eceef4;border-radius:999px;overflow:hidden}.progress-track div{height:100%;width:0;background:var(--brand);transition:.25s}.progress-txt{font-size:12px;color:#4d5569;font-weight:750;white-space:nowrap}.progress-txt.over{color:#b53a30}
|
||||||
@@ -61,7 +61,7 @@ button,input,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!im
|
|||||||
.constraint-input-row .row-actions{display:flex;gap:8px;justify-content:flex-end}
|
.constraint-input-row .row-actions{display:flex;gap:8px;justify-content:flex-end}
|
||||||
.work-grid{max-width:1540px;margin:0 auto;padding:16px 24px 96px;display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);gap:14px;align-items:start}
|
.work-grid{max-width:1540px;margin:0 auto;padding:16px 24px 96px;display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);gap:14px;align-items:start}
|
||||||
.pane-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:690px}.pane-head{height:54px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-weight:740;font-size:13px}.pane-body{padding:18px}
|
.pane-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:690px}.pane-head{height:54px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-weight:740;font-size:13px}.pane-body{padding:18px}
|
||||||
.sticky-pane{position:sticky;top:132px;height:calc(100vh - 300px);min-height:0;overflow:auto}
|
.sticky-pane{position:sticky;top:60px;height:calc(100vh - 150px);min-height:0;overflow:auto}
|
||||||
|
|
||||||
.original-pane-head{height:58px;gap:12px;flex-wrap:nowrap}.original-pane-title{display:flex;align-items:center;gap:7px;white-space:nowrap}
|
.original-pane-head{height:58px;gap:12px;flex-wrap:nowrap}.original-pane-title{display:flex;align-items:center;gap:7px;white-space:nowrap}
|
||||||
.paragraph-switcher{display:flex;align-items:center;gap:6px;margin-left:auto;overflow-x:auto;max-width:min(420px,42vw);padding-bottom:1px}
|
.paragraph-switcher{display:flex;align-items:center;gap:6px;margin-left:auto;overflow-x:auto;max-width:min(420px,42vw);padding-bottom:1px}
|
||||||
|
|||||||
Reference in New Issue
Block a user