Skip to content

[PR] feat(web): resizable session-table columns (whole-side cascade, outer edges fixed) - #4827

Open
yanhuojiyusheng wants to merge 1 commit into
ranxianglei:masterfrom
yanhuojiyusheng:2026-10-26_web-resizable-columns
Open

yanhuojiyusheng wants to merge 1 commit into
ranxianglei:masterfrom
yanhuojiyusheng:2026-10-26_web-resizable-columns

Conversation

@yanhuojiyusheng

Copy link
Copy Markdown
Contributor

Closes #4826

问题

会话表(概览「最近活跃会话」+ 会话列表)的 13 列宽度写死在 colgroup 里,table-layout: fixed + 首列 auto 让标题列吞掉全部剩余宽度(1800px 视口实测 912px,其中 700+px 被 .w-title { max-width: 200px } 浪费成空白),而「命中率」190px / 「客户端」84px 这种数值列贴边挤满。用户没有任何调节手段。

做法:整侧级联,外边界固定

每条列边界(除最后一列)挂一个 .col-resize 把手:

  • 首次 pointermove 才快照(冻结总宽为 px、各 col 写 px、加 .columns-resized),单纯单击不会把表格钉死;
  • 右拖:分界线左侧那列变宽,右侧各列由近及远依次让位;左拖:右侧第一个可见列变宽,左侧各列由近及远让位;
  • 首列最低 120px、其余 48px,只有整侧都到底才 clamp;表格总宽与左右外边界全程不动,最右列不可能被推出视口;
  • col:nth-child(n + 6) { width: 0 !important } 隐藏的列不参与回写,不会被复活;
  • 把手可聚焦,←/→ 各 20px;ses.resize_column 中英双语,切语言时标签同步刷新;
  • pointercancel / lostpointercapture / pointerup 全部 detach;
  • 列被钉住后 th, td 统一 overflow: hidden; text-overflow: ellipsis(之前 302.8M 会被硬切成 302.8)。

setPointerCapture 包了 try/catch —— 它抛错会中断整个 pointerdown 处理器,拖拽会没有任何报错地失效。

验证

  • 真实 CDP 鼠标事件 / 1800px / 13 列:右拖 160px → 命中率列 190→222、后续列由近及远让位;拖至 500px 左侧 → [710,48,48,48,48,48,48,48,548,54,48,48,56],表格 left 0 / right 1800 不变;键盘 ArrowRight 生效;700px 视口滚动仍在 .twrap 内。
  • node --import tsx --test tests/web-i18n.test.ts 11/11(新增反向断言:pointerdown 后不移动不得修改 table.style.width/minWidth)。
  • npm run typecheck、npm run build 通过。

已知边界

  • 列宽不持久化,也没有双击复位(钉死后无法回到 fluid);
  • 最小宽度按列序硬编码,增删列会静默错位;
  • 把手指占表头最右 8px,窄列时压字;
  • 单测 mock 只铺 3 列,13 列与隐藏列交互目前只有 CDP 实测。

只动 src/web/** 与该测试,不涉 kernel / 配置面 / wire。

@ranxianglei ranxianglei changed the title feat(web): resizable session-table columns (whole-side cascade, outer edges fixed) [PR] feat(web): resizable session-table columns (whole-side cascade, outer edges fixed) Oct 26, 2026
@ranxianglei

Copy link
Copy Markdown
Owner

(ai: opencode/vllm-qwen/qwen3.8-27b)

独立审核完成(方向 / 回归 / 代码 / 测试有效性 / diff 整洁度五关全过)。head 00591c4c2 本地定向验证:tests/web-i18n.test.ts 11/11、npm run typecheck、npm run build 均绿。设计方向认可:整侧级联 + 外边界固定同时解决了 v1(相邻转移被最小宽度卡死)与 v2(整表加宽把最右列推出视口)两个被否原因;正文列出的四处顺带修复各有证据、成立。回归审计:默认(未钉死)渲染路径零变化(新行为全部挂在 .columns-resized 类或新增元素下)、行点击导航守卫(ev.target.closest("button,…"))覆盖把手不会误导航、移动端隐藏列被 width: 0 !important 保护不复活、不碰 kernel/wire/配置面/持久化。测试断言有牙(逐值数组断言 + 「按住不动不得钉死」反向断言),非假测试;diff 干净单 commit。

发现两处小问题(合计两行内可修)。本 PR 分支在 fork 上且关闭了 maintainer edits,我推不进去——请自行应用,或重新开启 "Allow edits by maintainers" 我来推:

1. 省略号规则缺 white-space: nowrap,可换行内容压窄后不会出省略号(src/web/styles.ts 新增的 .twide .columns-resized th, .twide .columns-resized td 规则)

基础规则里 table.data th 自带 nowrap(src/web/styles.ts:170),但 table.data td 没有(src/web/styles.ts:172)。没有 nowrap 时,可换行的内容压窄后会先折行再被垂直裁切(行高跟着撑大),而不是单行省略:

  • 命中率列 (90.0%/-1.2%/-0.2%/-8.6%)(src/web/client.ts:675,/ 处可折行);
  • 开关列的多段串(src/web/client.ts:680 switchTd);
  • 客户端列的 span.clip.w-client 与 laneChip 徽章是两个独立内联元素,压窄时徽章整体折到第二行(src/web/client.ts:713-714)。

修法(一行):

.twide .columns-resized th, .twide .columns-resized td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

标题列已确认不受影响:.row-title / .row-id 都是 display: block 且各自已有 nowrap + ellipsis(src/web/styles.ts:425、:447),父 td 变 nowrap 后仍各占一行。

2. 空 catch 的未用变量(src/web/client.ts setPointerCapture 的 try/catch)

catch (err) {} 中 err 未使用;本仓库惯例是 catch (_)(同文件 :757 即此写法)。catch 本身的意图(capture 失败静默降级、不打断 pointerdown)是对的,只需对齐命名。

CI 状态:lock-sync 红为继承性失败——master HEAD cdac1c099 自身 lock-sync 即红(根 package-lock.json 记录 acp-kernel 0.0.163,实际 kernel/package.json 已 0.0.165),修复 dfadc21b3 在 ci-fixes 上,收敛 PR #4814 待 owner 合并。因本分支在 fork 上且 maintainer edits 关闭,我无法把 ci-fixes merge 进来;#4814 落地后请 git fetch origin && git merge origin/ci-fixes && git push 一次即可。其余车道全绿或正常 skip。

结论:应用上面第 1 条一行 CSS(+第 2 条可选改名)后本 PR 可合入;合并由 owner 执行。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: vllm-qwen/qwen3.8-27b)

**查重: 不重复。**按「列宽 / resizable / column width」检索 open+closed issue 与 PR:无其他同需求条目;相关历史条目机制均不同——#4363/#4362(会话事件/折叠明细表对齐)、#2450/#2448(dsh embed 窄屏适配)、#3566(会话过滤/分页)。本 PR 是原 issue #4826 的唯一实现。

标签: pr + scope/ui + p3(bili 自身 Web 面板的功能增强,UX 打磨级,非缺陷)

Review 结论

代码质量达标,可合。合入前还差两步:① 作者把 master 同步进分支(消继承红,见下);② 新 head 上 CI 绿。

结构化八问

  1. 是什么问题:会话表(概览「最近活跃会话」+ 会话列表)13 列宽度写死在 colgroup,标题列吞掉约 900px 空白、数值列被挤到 48–62px,用户没有任何调节手段。
  2. 什么原因导致的:设计缺失而非缺陷——table-layout: fixed + 标题列 auto 剩余分配,且从未提供 resize 入口。
  3. 影响范围与严重程度:纯前端 UX 增强,仅影响 bili 自身 Web 面板;用户不动手则外观完全不变(首次拖拽前保持 fluid 布局)。UX 打磨级,无可用性影响。
  4. 怎么修复的:每条列边界(除最后列)挂拖拽把手;首次 pointermove 才快照冻结总宽(单纯单击不钉死表格);右拖左侧列变宽、左拖右侧第一个可见列变宽,其余列由近及远依次让位;最小宽度 clamp(首列 120px / 其余 48px)只在整侧都到底时生效;≤720px media query 隐藏的列不参与回写、不会被复活;←/→ 键盘可各调 20px,i18n 标签中英双语。
  5. 是否有回归问题:逐项审过既有行为,未发现回归——
    • 未拖拽的表格保持原 fluid 布局(测试含反向断言:pointerdown 后不移动不得修改 table.style.width/minWidth,有效);
    • 隐藏列(nth-child(n+6) display:none + col width:0!important)快照得 width=0,cascade 与回写均跳过,不会复活;
    • ellipsis 规则由 .columns-resized 类门控,仅钉死后生效;specificity 已验证,正确覆盖 .w-title{max-width:200px}、.twide .w-up{max-width:112px}、.row-id{max-width:400px};
    • 两处 .twide 表均为 13 col + 13 th 静态结构(无 colspan),hydrate() 全程只调用一次,tbody 重渲染不影响绑定,SPA 导航间保持有效;
    • 小瑕疵(非回归):td 缺 white-space: nowrap,钉死后可换行文本会多行换行而非单行省略(不可断 token 如 302.8M 会正常省略);钉死前本来也是换行行为,语义未变。
  6. 是否破坏缓存:不涉及(纯交互状态,无持久化,不触碰任何缓存/重试/游标/去重键)。
  7. 是否改了设计方向:无。纯增量 UI,wire / kernel / 配置面全部未动。
  8. 是否引入新配置:无。ses.resize_column 是内部 i18n 文案键,不是配置面。

测试有效性

新单测有牙:从 WEB_CLIENT 源码里按标记提取真实的 bindSessionColumns() 进 vm 执行(mock 只铺 3 列),覆盖钉死/冻结总宽、近→远让位、最小宽 clamp、隐藏列不复活、pointercancel 清理、键盘调整、幂等双绑,并含反向断言。我手工复核了全部断言算术,正确。本地定向验证(master 合并后的树):tests/web-i18n.test.ts 11/11 绿。

CI 现状与需要作者操作的一步

  • 当前 head 00591c4c2 上 lock-sync 红 = 继承性漂移:分支分叉点早于 master(e290b4f)窗口内的 kernel 0.0.166 lockfile 再生成,与本 PR diff 无关(它不碰任何依赖/lockfile);
  • 本轮该 head 的 test / static-gates 车道被 skip(plan job 判出 scope=skip——三层 CI 规则下,非 ci:full 的 label 事件恰触发此结果)→ 这个 head 上还没有实际跑过的测试证据,CI 侧全量判定要等新 head;
  • 我已尝试替你把 origin/master merge 进分支推送,权限不允许(推不了你的 fork)。请执行一行:git fetch origin && git merge origin/master && git push。推送后 core matrix 会在干净基线上重跑,lock-sync 继承红与缺失的测试证据一并解决。

已知边界(作者已自述,v1 可接受,不阻塞)

列宽不持久化、无双击复位;最小宽度按列序硬编码(增删列会静默错位);把手占表头最右 8px,窄列压字;单测 mock 只铺 3 列,13 列与隐藏列交互目前靠 CDP 实测。后续若要持久化/复位,建议另开 issue 跟踪。

判定: 可合 —— 等作者同步 master 后,我在新 head 上核对 CI 结果并回报收口。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: opencode/vllm-qwen/qwen3.8-27b)

lock-sync 红 = 继承性失败(master 自身同款红);修复已备好并本地验证通过,卡在 fork 写权限——需要你跑一条命令或开启 maintainer edits。

结构化结论:

  1. 是什么问题:lock-sync 车道红——package-lock.json 记录的 acp-kernel 版本(0.0.163)落后于 kernel/package.json(0.0.165),CI 跑 npm install --package-lock-only 后该版本字段产生 diff。
  2. 什么原因导致的:master 窗口内 kernel 版本 bump 提交未重生成 lockfile(package-lock.json version metadata lags package.json (bili 0.1.190 vs 0.1.191, kernel 0.0.112 vs 0.0.114) #2704 漂移类);本次 CI 运行时 master 还是 cdac1c0,它自身即同款红(CI 日志 diff 就是那一行版本字段)。与本 PR 代码无关——本 PR 只动 src/web/** 与 tests/web-i18n.test.ts,零依赖/lockfile 改动。
  3. 影响范围与严重程度:CI 级阻塞(基于旧 master 分支的 PR 都会同款红),无用户面影响。
  4. 怎么修复的:把当前 master 341e76c28(已含 [PR] fix(#4797): root-cause fix for superseded live-key collision — restamp pruning + semantics-preserving guard translation | fix(#4797): superseded 活键碰撞根治——restamp 剪枝 + 守卫保义翻译 + 一次性标志修复 (kernel 0.0.166) #4807 的 kernel 0.0.166 lockfile 再生成,漂移源头已消)merge 进 PR head,新 head 04b0a722a。零冲突(两侧触碰文件零交集)。本地验证:门禁命令复现(npm install --package-lock-only && git diff --exit-code -- package-lock.json)无 diff、typecheck 绿、tests/web-i18n.test.ts 11/11。
  5. 是否有回归问题:无——merge 带入的是 master 自身提交(已过各自门禁),本 PR 默认渲染路径行为不变。
  6. 是否破坏缓存:不涉及。
  7. 是否改了设计方向:不涉及。
  8. 是否引入新配置:不涉及。

卡点:分支在你的 fork 上,且 PR 关闭了 "Allow edits by maintainers"——我们的账号对你的 fork 没有写权限(实测 git push 返回 permission denied),无法代推 04b0a722a。二选一即可:

  • A · 你自行执行(内容等价):git fetch upstream && git merge upstream/master && git push(upstream = ranxianglei/billion-context);
  • B · 我们代推:在 PR 页面开启 "Allow edits by maintainers" 后在此回一句,我们直接推 04b0a722a,并顺带应用 floor 3 审核遗留的两处小修(一行 CSS white-space: nowrap + 可选的 catch (_) 改名)。

转绿后等全量 CI 即可;其余车道目前全绿或正常 skip。按政策未为此新开 issue(继承性失败收敛在 master/ci-fixes 侧)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: opencode/vllm-qwen/qwen3.8-27b)

状态未变,补一行确认(详情见本线程前两条回复):PR head 仍是 00591c4c2,master 也停在 341e76c28,我这边备好的合并头 04b0a722a(已含当前 master,lock-sync 门禁命令本地复现无 diff、typecheck 绿、web-i18n 11/11)仍然最新可用。

仍只差你一步,二选一:

  • A:git fetch upstream && git merge upstream/master && git push(upstream = ranxianglei/billion-context);
  • B:开启 "Allow edits by maintainers" 后回一句,我们直接推 04b0a722a 并顺带应用审核遗留的两处小修(styles.ts 一行 white-space: nowrap + client.ts catch (_) 改名)。

转绿后等全量 CI 即可收口。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

(ai: opencode/vllm-qwen/qwen3.8-27b)

我的审核已完成并收口(完整八问见本线程我的上一条回复),这里汇总现状:

已做:① 查重——不重复;② 打标签 pr + scope/ui + p3;③ 逐行审核代码与测试(cascade 算术手工复核、隐藏列/ellipsis 门控/hydrate-once 绑定有效性/specificity 逐项验证)——未发现回归,判定可合;④ 本地定向验证(master 合并后的树):tests/web-i18n.test.ts 11/11、npm run typecheck 绿。

现状(刚核过):PR head 仍是 00591c4c2,作者尚未推送;master tip 341e76c28;我这边备好的合并头已包含当前 master(lock-sync 门禁命令本地复现无 diff)。CI 侧 lock-sync 红为继承性漂移,test/static-gates 车道因 plan job scope=skip 未实际跑过——新 head 推送后 core matrix 会在干净基线上补齐全部证据。

唯一待办仍是 floor 9 的 A/B 二选一(A: 作者自行 git fetch upstream && git merge upstream/master && git push;B: 开启 "Allow edits by maintainers" 由我们代推并顺带应用两处一行级小修)。新 head 出现后我会核对 CI 结果并回报收口,在此之前不再重复催办。

@yanhuojiyusheng
yanhuojiyusheng force-pushed the 2026-10-26_web-resizable-columns branch from 00591c4 to 7a4aa8e Compare October 26, 2026 12:35
Session tables (overview + sessions list) get a drag handle on every column
boundary except the last. Dragging widens one side and shrinks the other
cascade-style (nearest column first), so the table's total width and both
outer edges stay fixed and the rightmost column can never leave the viewport.

- lazy snapshot on the first pointermove: a plain click no longer pins the
  table to pixel widths
- per-column floors (120px for the first column, 48px otherwise) clamp the
  cascade instead of the nearest neighbour
- columns hidden by col:nth-child(n+6) at <=720px are never revived
- keyboard: focusable handle, ArrowLeft/ArrowRight step 20px
- pointercancel / lostpointercapture detach the listeners
- th/td clip with ellipsis once the columns are pinned
- i18n: ses.resize_column (zh/en); handle labels refresh on locale switch

Refs ranxianglei#4826
@yanhuojiyusheng
yanhuojiyusheng force-pushed the 2026-10-26_web-resizable-columns branch from 7a4aa8e to 216f0b3 Compare November 2, 2026 01:23

@ranxianglei ranxianglei left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ai: vllm-qwen/qwen3.8-27b)

APPROVE — 实现与声明一致,级联算术/最小宽度钳制/隐藏列守卫都正确,单测有牙(断言值逐一手工核对过),无阻塞项。审出两处小问题(其一导致 PR 声称的省略号效果实际不生效):修复已在本地备好并验证,但向你的 fork 推送 permission denied,精确的两行改动见下方「发现的小问题」,可直接提交。

结构化结论(八问)

  1. 是什么问题:web 面板两张会话表(总览 recent + sessions 列表)13 列宽度全部写死在 colgroup,1800px 视口实测标题列吞掉 ~912px、数值列挤到 48–72px,用户完全无法调整——纯 UI 可用性缺陷,对代理/压缩行为零影响。
  2. 什么原因导致的:页面最初按「固定列宽 + 首列吸收剩余」布局且没有调宽入口;相邻列转移方案因最小宽度死锁被否(#4826 的分析),本 PR 用整侧级联 + 外缘钉死绕开该死锁。
  3. 影响范围与严重程度:仅 loopback web UI 的两张表;默认视图在首次拖动前逐像素不变(新增 CSS 全挂在 .columns-resized 类下,该类只在首次 pointermove 时添加)。体验增强类,无数据/安全影响。
  4. 怎么修复的:每个 th(末列除外)挂一个可聚焦的 8px 把手;惰性快照只在首次拖动时做(点击不锁表);右拉扩大左邻、右侧由近及远让宽,左拉反之;最小宽度 120px(首列)/48px 兜底;回写 colgroup 前跳过 width:0 的隐藏列(移动端 ≤720px 隐藏的 n+6 列不会被复活);pointercancel/lostpointercapture/pointerup 全路径拆监听;键盘 ←/→ 步进 20px;aria-label 走 i18n 且重绑时刷新语言。
  5. 是否有回归问题:逐项清点既有行为,未见破坏——① 默认流式布局(未拖动):保持,新 CSS 全在 .columns-resized 作用域内,仅 .twide th{position:relative} 为布局中性;② 移动端 ≤720px 隐藏列规则:保持,回写被 initial[i]>0 守卫挡住(逻辑核对 + 零宽列测试用例覆盖);③ embed 变体:同一套通用逻辑,min-width:0 场景同样成立;④ 语言切换(location.reload 流程):保持,i18n 双 locale 齐加、parity 套件绿;⑤ 行渲染/轮询刷新:tbody innerHTML 重建不动 table+colgroup,已钉宽度跨轮询存活(预期行为);⑥ 行点击跳转:监听器在数据行 tr 上且对 button 目标早退,与表头把手无交互。高危模式(语义漂移/fail-fast 变吞错/阈值时序/输出格式变化):均不涉及——无 wire、无 kernel、无配置面、无持久化格式变更。
  6. 是否破坏缓存:不涉及(纯前端展示层,不碰 prefix cache / 增量游标 / 去重键)。
  7. 是否改了设计方向:不涉及后端架构;前端新增一个交互面,边界清晰(只写 colgroup + table 内联样式,类名懒加)。
  8. 是否引入了新的配置:无(无新 env/config/CLI flag)。

测试有效性

新单测从 WEB_CLIENT 源码抽出 bindSessionColumns 在 vm mock DOM 里跑:级联算术、双向钳制、零宽列跳过、点按不钉死、键盘步进、监听清理,断言值我逐一手工核算过,是真断言不是恒真;作者已披露缺口(真实 13 列结构 + 移动端媒体查询靠手动 CDP 取证,正文有数据;label 刷新路径未断言)——对 UI 功能可接受。本地复跑 node --import tsx --test tests/web-i18n.test.ts → 11/11 通过。

发现的小问题(非阻塞;修复已备好并本地验证,待你提交)

向你 fork 推送返回 permission denied(直连与既有 yhj-fork remote 各试一次),以下两处小修留在原地,合计两行:

  1. PR 声称的省略号实际没生效(src/web/styles.ts 新增规则):text-overflow: ellipsis 对允许换行的盒从不触发,缺了 white-space: nowrap,压窄后仍是换行长行、不可断 token 硬切(正是本 PR 声称要修的 302.8M→302.8 症状)。修法:该规则补上 white-space: nowrap; ——与仓库既有 .clip 模式一致,.twide .badge 有显式 normal 不受影响:
    .twide .columns-resized th, .twide .columns-resized td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  2. 空 catch 补一行 why 注释(src/web/client.ts pointerdown 内):setPointerCapture 抛错被吞是刻意降级(没有这个 try/catch,抛错会中断 pointerdown、move/stop 监听器来不及挂载,把手整体静默失效)——补一行注释防止后人当坏味道删掉 try/catch 反而复活原始缺陷:
    // capture is best-effort: a throw here must degrade the drag, not kill the handler
    (放在现有 try 行上方即可。)

两处改动本地已验证:web-i18n 套件仍 11/11 绿。如希望由我直接提交,请把 ranxianglei 账号加成你 fork 的 collaborator。

备注(不改码)

  • 「既有把手刷新 label」分支在当前生产流程里是防御性的:语言切换走 location.reload(),DOM 每次全新,该分支实际不会命中(单测里通过二次 bind 覆盖了它)——留着无害。
  • 已知限制(PR 正文已如实披露):宽度不持久化、双击不重置、最小宽度按列序写死(增删列会错位)、把手占表头最右 8px 窄列时压字——都是后续打磨项,不构成回归。

判定:APPROVE,可合并(本 head CI 已绿;上述两行外观性修复合入与否不影响功能正确性)。

@ranxianglei

Copy link
Copy Markdown
Owner

🤖 Powered by ework · qwen3.8-27b

[bot] 🏷
(ai: vllm-qwen/qwen3.8-27b)

review-worker-r1 审核收口(本轮 head 216f0b30f):已发 GitHub APPROVE review,无阻塞项;两处小问题修复已备好并本地验证,卡在 fork 写权限(与上轮相同卡点)。

做了什么:

两处小问题(非阻塞,与 10-26 那轮 floor 2/floor 5 发现的是同一组,新 head 仍未带上):

  1. .columns-resized 的 th/td 规则缺 white-space: nowrap —— 基础规则里 table.data th 本就带 nowrap(src/web/styles.ts:171),缺的是 td(:173);没有它可换行内容压窄后折行撑高而非单行省略,不可断 token 仍硬切(PR 声称修的 302.8M→302.8 症状没修干净)。修法一行:该规则末尾补 white-space: nowrap;(.twide .badge 有显式 normal,不受影响)。
  2. setPointerCapture 的空 catch:吞错是刻意降级(抛错会中断 pointerdown、监听器来不及挂载、把手静默失效),补一行 why 注释防止后人当坏味道删掉 try/catch 复活原始缺陷(上轮建议的 catch (_) 改名也可,注释方案保留意图说明更稳)。

卡点(同上轮,需作者一步):两处修复我已在本地 commit 并验证(web-i18n 仍 11/11),但向你 fork 推送实测 permission denied(直连与既有 remote 各试一次)——"Allow edits by maintainers" 仍是关闭的。精确两行改动已完整写在 GitHub review 里可直接粘贴提交;若开启 maintainer edits(或把 ranxianglei 加成 fork collaborator)回一句,我直接推上去收口。

判定:APPROVE,代码本身可合;上述两行属外观性精修,合不合入都不影响功能正确性,由 owner 定夺。

ranxianglei pushed a commit that referenced this pull request Nov 7, 2026
Session tables (overview + sessions list) get a drag handle on every column
boundary except the last. Dragging widens one side and shrinks the other
cascade-style (nearest column first), so the table's total width and both
outer edges stay fixed and the rightmost column can never leave the viewport.

- lazy snapshot on the first pointermove: a plain click no longer pins the
  table to pixel widths
- per-column floors (120px for the first column, 48px otherwise) clamp the
  cascade instead of the nearest neighbour
- columns hidden by col:nth-child(n+6) at <=720px are never revived
- keyboard: focusable handle, ArrowLeft/ArrowRight step 20px
- pointercancel / lostpointercapture detach the listeners
- th/td clip with ellipsis once the columns are pinned
- i18n: ses.resize_column (zh/en); handle labels refresh on locale switch

Refs #4826
Co-authored-by: wxy <2398249916@qq.com>
(external contribution preserved from PR #4827 by @yanhuojiyusheng, fixes #4826)
ranxianglei pushed a commit that referenced this pull request Nov 7, 2026
Session tables (overview + sessions list) get a drag handle on every column
boundary except the last. Dragging widens one side and shrinks the other
cascade-style (nearest column first), so the table's total width and both
outer edges stay fixed and the rightmost column can never leave the viewport.

- lazy snapshot on the first pointermove: a plain click no longer pins the
  table to pixel widths
- per-column floors (120px for the first column, 48px otherwise) clamp the
  cascade instead of the nearest neighbour
- columns hidden by col:nth-child(n+6) at <=720px are never revived
- keyboard: focusable handle, ArrowLeft/ArrowRight step 20px
- pointercancel / lostpointercapture detach the listeners
- th/td clip with ellipsis once the columns are pinned
- i18n: ses.resize_column (zh/en); handle labels refresh on locale switch

Refs #4826Co-authored-by: wxy <2398249916@qq.com>
(external contribution preserved from PR #4827 by @yanhuojiyusheng, fixes #4826)
ranxianglei pushed a commit that referenced this pull request Nov 7, 2026
Session tables (overview + sessions list) get a drag handle on every column
boundary except the last. Dragging widens one side and shrinks the other
cascade-style (nearest column first), so the table's total width and both
outer edges stay fixed and the rightmost column can never leave the viewport.

- lazy snapshot on the first pointermove: a plain click no longer pins the
  table to pixel widths
- per-column floors (120px for the first column, 48px otherwise) clamp the
  cascade instead of the nearest neighbour
- columns hidden by col:nth-child(n+6) at <=720px are never revived
- keyboard: focusable handle, ArrowLeft/ArrowRight step 20px
- pointercancel / lostpointercapture detach the listeners
- th/td clip with ellipsis once the columns are pinned
- i18n: ses.resize_column (zh/en); handle labels refresh on locale switch

Refs #4826
Co-authored-by: wxy <2398249916@qq.com>
(external contribution preserved from PR #4827 by @yanhuojiyusheng, fixes #4826)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

web session tables have no column resizing | Web 面板会话表列宽不可调:标题列吃掉 912px 空白、数值列压在 48–62px

2 participants