Skip to content

feat(settings): 配置面板改为左右分区定高布局#122

Merged
huhamhire merged 1 commit into
devfrom
feat/settings-panel-layout
Jun 24, 2026
Merged

feat(settings): 配置面板改为左右分区定高布局#122
huhamhire merged 1 commit into
devfrom
feat/settings-panel-layout

Conversation

@huhamhire

Copy link
Copy Markdown
Owner

背景

Milestone #7 配置面板优化 的首个 PR。此前设置面板各 section 单列平铺,无分类 / 导航,纵向越堆越长、新增配置项难以归位。本 PR 落地左右分区骨架,为后续扩展(主题 / 编辑器风格 / 上下文窗口等)预留结构,不引入新配置项

改动

  • 布局重构SettingsModal 由单列平铺改为左侧分区导航 + 右侧分区内容,分区元数据(SETTINGS_CATEGORIES)驱动;现有 9 个 section 归位四分区:
    • 常规 → 界面语言
    • 连接 → 代码平台 / 轮询策略 / 代理 / 缓存目录
    • AI → 模型配置 / Agent 规则目录
    • 关于 → 工作目录 / 其他信息(运行时)
  • 定高 + 右侧滚动:新增 Modal lg 尺寸(max-width 880px)+ 定高 720px(受 .modal max-height: 84vh 约束,小屏自适应);切换分区时模态尺寸恒定,右侧内容区独立滚动。
  • 视觉:左侧导航与模态主体同色($bg-elev),仅以右侧分隔线区分。
  • i18n:四语言新增分区标签 catGeneral / catConnection / catAi / catAbout(递归字典序)。

验证

  • typecheck ✅ / lint ✅ / build ✅(desktop 无 test target)

🤖 Generated with Claude Code

将设置面板从单列平铺重构为左侧分区导航 + 右侧分区内容:
- 按领域归类现有配置项(常规 / 连接 / AI / 关于),分区元数据驱动、为后续扩展预留
- 新增 Modal lg 尺寸(max-width 880px)+ 定高 720px,切换分区尺寸恒定、右侧内容区独立滚动
- 左侧导航与模态主体同色,仅以分隔线区分
- 四语言新增分区标签 i18n

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@huhamhire huhamhire added this to the 配置面板优化 milestone Jun 24, 2026
@huhamhire huhamhire added the enhancement New feature or request label Jun 24, 2026
@huhamhire huhamhire merged commit 8d5d3ce into dev Jun 24, 2026
1 check passed
huhamhire added a commit that referenced this pull request Jun 24, 2026
合并 dev(含 #122 配置面板左右分区布局),CHANGELOG 的 Unreleased 两条 Changed 并列保留。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@huhamhire huhamhire deleted the feat/settings-panel-layout branch June 24, 2026 14:31
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.

1 participant