Skip to content

fix(desktop): prevent step limit segmented buttons from wrapping on narrow screens#3596

Merged
esengine merged 1 commit into
esengine:main-v2from
Li-Charles-One:fix/step-limit-responsive
Jun 9, 2026
Merged

fix(desktop): prevent step limit segmented buttons from wrapping on narrow screens#3596
esengine merged 1 commit into
esengine:main-v2from
Li-Charles-One:fix/step-limit-responsive

Conversation

@Li-Charles-One

Copy link
Copy Markdown
Contributor

问题

设置页面中「执行轮数上限」和「规划轮数上限」的 segmented 按钮组在竖屏/窄窗口下,\ lex-wrap: wrap\ 导致按钮换行,「自定义」等文字被截断或布局错乱。

修复

  • 移除 .step-limit-control\ 的 \ lex-wrap: wrap\,改为横向滚动
  • 给 .step-limit-control .set-seg\ 加 \ lex-shrink: 0\ 防止被压缩
  • 给 .set-seg__btn\ 加 \white-space: nowrap\ 防止按钮内文字换行

验证

  • \wails dev\ 桌面端实测,竖屏窄窗口下按钮组横向滚动,不再换行

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) and removed v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 8, 2026

@esengine esengine 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.

Reviewed: this is a genuine bug-fix (not a cosmetic UI change) and CI is green. Approving.

@esengine esengine merged commit 272bc9d into esengine:main-v2 Jun 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants