Skip to content

卡片标记去掉底色方块、焦点框只在键盘操作时显示、名称提示去掉编号行 - #305

Merged
qiyinxi merged 4 commits into
ModAVD:mainfrom
qiyinxi:fix/issue-462-card-marks
Dec 5, 2026
Merged

qiyinxi merged 4 commits into
ModAVD:mainfrom
qiyinxi:fix/issue-462-card-marks

Conversation

@qiyinxi

@qiyinxi qiyinxi commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Refs ModAVD/ModAVD#462

改动

  • 实例卡片标题后的标记(猫头 / G / K / 无头 / A):改成 18px 格子、1px 细框(--line-2)、无底色;字母 14px / 600,图标按同样 10px 墨迹高对齐(猫头 14.5px、无头 12.83px)。颜色 --text-2,代理标记出问题时只把图标变成 --tf;猫头和 A 两个按钮悬停时框变深。列表视图同样生效。
  • 复制 ADB 地址的标记由机器人图标改成字母 A(仍是按钮,标题和无障碍名称不变)。
  • 焦点框只在键盘操作时显示:app.js 在 Tab、方向键、Enter、空格等导航键按下时给 <html> 加 kbd,pointerdown 时去掉;各处 :focus-visible 的描边、阴影限定为 html.kbd,文本输入框聚焦的边框色保留。
  • 卡片名称的悬停提示不再有第一行「编号 N · mas_N」,只剩自定义名称、诊断模式和警告行,都没有时不显示提示。状态名(屏幕阅读器读的)本来没有这行,没动。
  • 更新 cards.js 和 app.css 里标记规则的注释,更新相应测试。

测试

  • node --experimental-vm-modules --test scripts/test_*.mjs(CI 里各文件的跑法):全部通过,其中 test_create_cancel.mjs 48 项。
  • go test ./internal/ui/...:通过。
  • 界面效果用 dev mock(?mock=headless&ksu=ready)看过:G、K、A、猫头、无头的墨迹都在 18px 格子的 4–14 之间(±0.5px),11 张卡片高度一致。

@qiyinxi qiyinxi added the enhancement New feature or request / 新功能或改进 label Dec 5, 2026

jinghero commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

总体结论:修改后合并

以下仅供参考

鼠标点猫头不再冒出一圈像报错的框,键盘 Tab 还能看清焦点在哪。名称提示去掉编号,也没顺手把诊断和磁盘警告藏起来。拦住这轮的反而是发版文案。

[规范 · P2] 英文更新说明超长,下次发版收集会报错。阻断合并:是。 碎片第 2 行 去掉句号仍有 140 字符,发版校验上限是 120。管理器 CI 不查这个目录,但整包收集新碎片时会校验,出错就中止。英文行缩短就好,例如:Larger unboxed card icons, keyboard-only focus rings, and no index in the name tooltip.

合入前也请在实际 WebView2 上点开、关掉一次代理弹窗,再用 Tab、Esc 走一遍。源码和现有测试不能替代这一步的视觉确认。

dot酱敬上

jinghero commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

总体结论:修改后合并

以下仅供参考

ADB 换成「A」后,点它还是复制地址,悬停和读屏也仍能知道按钮是干什么的。标题和标记一起放大了,实机顺手看一下窄窗里长标题和标记会不会挤在一起。

[规范 · P2] 英文更新说明仍超长。阻断合并:是。 这版第 2 行 去掉句号还有 164 字符,发版收集仍会卡在 120 字符上限。可以压成:Larger card titles and unboxed marks, keyboard-only focus rings, and no index in the name tooltip.

dot酱敬上

jinghero commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

总体结论:可以合并

以下仅供参考

英文更新说明现在是 116 字符,发版收集那道坎过了,上轮 P2 收掉。卡片标记的新细框跟键盘焦点框是两回事:鼠标点完只有标记自己的边框,Tab 过去才会多一圈焦点提示。等当前 CI 跑完,再按仓库流程合入。

dot酱敬上

@qiyinxi
qiyinxi enabled auto-merge December 5, 2026 18:31
@qiyinxi
qiyinxi added this pull request to the merge queue Dec 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 5, 2026
@qiyinxi
qiyinxi merged commit b7c8c65 into ModAVD:main Dec 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request / 新功能或改进

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants