Skip to content

fix(settings): size segmented controls to their content - #1816

Merged
vastsa merged 1 commit into
mainfrom
fix/settings-process-display-width
Oct 22, 2026
Merged

vastsa merged 1 commit into
mainfrom
fix/settings-process-display-width

Conversation

@vastsa

@vastsa vastsa commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Let Settings-row segmented controls grow to their translated labels instead of the 240px field-column cap.
  • Keep option labels on one line; allow the control and whole options to wrap within the available width.
  • Add responsive regression coverage and update the Settings specification and existing transcript-display E2E scenario.

Validation

  • Confirmed the old layout fails the regression: Commands first wraps at a 1000px window width.
  • 34 targeted Settings/segmented-control tests passed.
  • node scripts/e2e-settings-scroll.mjs passed: mounted production Settings page, selection/save flow, English and Simplified Chinese, 800/1000/1440px widths, 100%/150% font scales (12 combinations), isolated Electron profile and fixture IPC.
  • Desktop electron-vite build, Desktop tsc --noEmit, Biome lint, style-token check, architecture check, docs page/locale checks, and git diff --check passed.
  • No persistence, IPC, default-selection, or permission behavior changes. Rust is unchanged; full repository CI will validate the integration candidate.

Task candidate: 45a73f276e1f1efe35a958266eca9fb172565393
Base main: 8c7cfd0ae96ff3e266df63e0fb1274fb5b711d3e
Environment: macOS, Node 24.14.0; existing host dependencies/toolchain reused, isolated Electron state, no real provider or running user application.

Keep translated display-mode labels on one line instead of squeezing them
into the fixed field column. Allow settings controls and whole options
to wrap when the available pane width is limited.
Copilot AI balanced review requested due to automatic review settings October 22, 2026 09:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa

vastsa commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

Integration candidate validation passed.

  • Candidate: 7445cc09087eb03025134bd2a4dae1f1e6564775 (GitHub PR merge ref)
  • Base main: 8c7cfd0ae96ff3e266df63e0fb1274fb5b711d3e
  • Verified the candidate tree exactly matches the tested request head.
  • Ran node scripts/e2e-settings-scroll.mjs from the request worktree checked out at the merge ref: passed, including all 12 English/Chinese window-width/font-scale combinations and display-mode selection/save checks.
  • Reused the host toolchain/dependencies and isolated Electron test state. No real provider or user application was accessed.

Waiting for the remaining repository CI checks before merging.

@vastsa
vastsa merged commit fc8d396 into main Oct 22, 2026
6 checks passed
@vastsa
vastsa deleted the fix/settings-process-display-width branch November 6, 2026 04:24
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