Skip to content

fix: settings page vertical text misalignment (#31) - #47

Closed
eagleLiu82 wants to merge 2 commits into
wimi321:mainfrom
eagleLiu82:main
Closed

fix: settings page vertical text misalignment (#31)#47
eagleLiu82 wants to merge 2 commits into
wimi321:mainfrom
eagleLiu82:main

Conversation

@eagleLiu82

Copy link
Copy Markdown

Summary

  • Fixes the settings page style misalignment reported in issue [Bug]: 设置页出现样式错位 #31: toggle and
    checkbox labels could collapse to a single-character column and render
    vertically on the right edge of the settings card.
  • Root cause: the global input { width: 100% } rule stretched checkboxes
    across the whole flex row and squeezed the label span to its minimum content
    width (one CJK character). The checkbox is now auto-sized (16×16) and the
    label span fills the remaining width via flex: 1 1 auto; min-width: 0.
  • Applied the same fix to the Zhizi paid-confirm checkbox, and added
    white-space: nowrap to settings action buttons plus flex-wrap on Zhizi
    action rows so button labels can never wrap vertically again.
  • Added a contract regression test that guards the one-line toggle layout.
  • Prepares the v0.4.21 release: version bump to 0.4.21, multilingual release
    notes (docs/RELEASE_NOTES_v0.4.21.md), and syncs the NVIDIA release-asset
    contract to the current prepare:katago-transformer model-selection
    mechanism used by the release workflow.

Verification

  • pnpm typecheck
  • pnpm build
  • pnpm test — 244/244 passing (incl. new regression test)
  • node scripts/check_release_notes_i18n.mjs — multilingual release notes OK for v0.4.21
  • node scripts/check_no_lite_release_assets.mjs
  • node scripts/check_nvidia_release_assets.mjs
  • UI checked locally — verified in the running desktop app that the KataGo
    auto-optimize toggle renders a 16×16 checkbox with one-line horizontal
    label text

Notes

  • Two local commits: b42ebf3 (fix) and 7126632 (chore: prepare GoAgent v0.4.21 release).
  • Tag v0.4.21 is created locally; push it after merge to trigger the release workflow.
  • GitHub was unreachable from the WSL environment during this work, so pushing is done from the Windows
    machine.

Toggle and checkbox labels in the settings drawer could shrink to
one-character columns and render their text vertically on the right edge
of the card: the global input { width: 100% } rule forced full-width
checkboxes inside flex rows, squeezing the label span to min-content.

- auto-size the settings-inline-toggle and zhizi-paid-confirm checkboxes
- let the label span fill the remaining width and wrap horizontally
- keep settings ghost/primary buttons and zhizi action buttons from
  wrapping vertically (nowrap + flex-wrap)
- add a contract regression test for the one-line label layout

Verified: 244 tests, typecheck, production build.
- settings page alignment fix for issue wimi321#31 (checkbox toggles no longer
  render their labels as vertical one-character columns)
- bump version to 0.4.21 and add multilingual release notes
- update NVIDIA release-asset contract to the current model-selection
  mechanism (prepare:katago-transformer) used by the release workflow
@wimi321

wimi321 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Thank you @eagleLiu82 for carrying this fix and documenting the root cause. I reviewed the branch and integrated the focused settings-layout change through #48, then added real Electron visual QA, compact-window checks, and geometry validation across all seven supported locales. #48 is now merged.\n\nI intentionally excluded the unrelated 0.4.21 version bump, release notes, local tag preparation, and NVIDIA release-script changes so this UI fix could land independently and safely. Closing this PR as superseded by #48.

@wimi321 wimi321 closed this Aug 15, 2026
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