Skip to content

fix(settings): give add-on settings pages the native content width - #503

Open
WilliamWang1721 wants to merge 4 commits into
Kuddev:mainfrom
WilliamWang1721:claude/settings-tab-width-consistency-d130f2
Open

WilliamWang1721 wants to merge 4 commits into
Kuddev:mainfrom
WilliamWang1721:claude/settings-tab-width-consistency-d130f2

Conversation

@WilliamWang1721

Copy link
Copy Markdown
Contributor

Result / 用户结果

设置页中 SSH、备份、Agent、手机远程四个后加页面原先各自限宽并居中(1000 / 700 / 720 / 812 px,另带私有左右留白),与终端、外观等原生设置页相比明显偏窄。现在它们与原生页面共用同一内容列宽度和页边距;应用页(第一个 tab)保持原有 960px 上限不变。

为避免拉宽后显得松散:备份向导第一步的存储选项在宽窗(≥960px)改为两列,窄窗仍单列。

Design / 设计边界

  • 仅改布局约束:移除 settings_pane.rs 中对 4/9/10/mobile 的 items_center 与 mobile 的 p_0 例外,删除各页自身的 max_w 与私有 padding。
  • section_ssh 不再需要 window 参数(仅用于计算私有留白)。
  • 无数据、线程、持久化或 i18n 变化。

Evidence / 验证依据

  • 本地仅做代码审查与 rustfmt --check(改动文件通过);构建与测试交由本 PR 的 GitHub Actions。
  • 更新了两条编码旧“窄列居中”合同的测试:Agent 行与备份向导现在断言贴合设置内容列左右边缘;备份测试新增宽窗两列 / 窄窗单列断言。

AI 协助:Claude Opus 5.5(claude-opus-5-5),推理强度:未确认。

SSH, backup, Agents and mobile pages each capped and centered their own
column (1000/700/720/812 px) with private gutters, so they looked narrow next
to the native settings pages. They now fill the shared settings column with
the same gutters, and the backup storage choices use two columns on wide
windows so the option rows do not stretch into long bars.
@Kuddev

Kuddev commented Oct 6, 2026

Copy link
Copy Markdown
Owner

这项主要改变页面宽度和信息布局:除去私有留白之外,还取消了原型中明确记录的移动页宽度,并把备份选项改成两列。它不应仅按纯功能 bug 合并。

请补当前 head 的宽/窄窗口实际截图,包含 SSH、备份向导、Agent 路径状态行及手机配对状态,说明与已确认设计的对应关系。已有布局测试是有效证据,但它们更新了原居中合同,本身不构成对新设计的确认。本轮先处理功能修复,保留该 PR 等视觉核验。

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.

2 participants