Skip to content

fix(ui): 连接/日志页 hero 卡高度棘轮根治(contain:size)#273

Merged
Sway-Chan merged 1 commit into
dododook:mainfrom
Sway-Chan:fix/hero-card-height-ratchet
Jul 8, 2026
Merged

fix(ui): 连接/日志页 hero 卡高度棘轮根治(contain:size)#273
Sway-Chan merged 1 commit into
dododook:mainfrom
Sway-Chan:fix/hero-card-height-ratchet

Conversation

@Sway-Chan

Copy link
Copy Markdown
Collaborator

拓扑高度棘轮(#272)的同构:连接/日志 hero 填充卡同样内容撑高、缩窗不回缩(overflow-y 因卡高非 definite 失效,低行数掩盖高行数暴露;连接页 sim 200 行实测 cardH 9386px)。.conns-scroll/.lv-streamcontain:size 断棘轮→视口驱动+内部滚动(真机验:cardH 9386→709)。充分梳理确认同构仅此三处 hero 卡,弹窗因 max-h-[92vh] definite 安全。

充分梳理:高度棘轮同构实例仅拓扑(dododook#272 已修)/连接/日志三处 hero 填充卡。连接页 sim 200 行实测 cardH 9386px(长到全内容高、缩窗不回缩、overflow-y 因卡高非 definite 失效,低行数掩盖)。
- .conns-scroll / .lv-stream 加 contain:size:内容 intrinsic 高退出尺寸方程→卡片视口驱动→内部正常滚动。真机 CDP:窗高 900 时 cardH 9386→709、内容 9384 在 707 容器内滚动。
- 弹窗(rl-dlg-body 等)因 DialogContent max-h-[92vh] definite + fixed 覆盖层安全,非风险。
@Sway-Chan Sway-Chan merged commit fa1048d into dododook:main Jul 8, 2026
@Sway-Chan Sway-Chan deleted the fix/hero-card-height-ratchet branch July 8, 2026 17:28
Sway-Chan added a commit that referenced this pull request Jul 8, 2026
#273 在 .conns-scroll/.lv-stream 上加 contain:size 引入回归:拖动窗口时
内嵌内容(表格/日志行)不再跟随缩放。改为根因位置的修复。

根因:main-layout 的 .container 用 min-h-full(height:auto),内容 intrinsic
高经 flex-basis:0 链上传成为地板,卡片缩不回、卡内 overflow-y 失效(高度棘轮)。

修复:hero 视图(connections/logs)的 .container 改用 h-full(height:100%,
对定高 scroller 解析),卡高与内容解耦、纯视口驱动、双向跟窗;卡 min-height
地板超视口时溢出并入页级 scroller 兜底滚动。.conns-scroll/.lv-stream 回退
contain:size。home 保持 min-h-full(拓扑卡由 connection-topology 的
[contain:size] 单独定高)。

.log-viewer 加 min-height:280px 地板(对齐 .conns-card 400px 语义):诊断卡
展开+矮窗时 viewer 止步 280px、超出走页级滚动,而非把日志流挤成窄条塌缩。

真机(macOS arm64)双向拖动验证:窗口缩放正常、内嵌内容跟随。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant