Skip to content

fix: auto-compute config dialog height from settings list - #17

Open
prsauer wants to merge 1 commit into
mainfrom
fix/auto-height-config-dialog
Open

fix: auto-compute config dialog height from settings list#17
prsauer wants to merge 1 commit into
mainfrom
fix/auto-height-config-dialog

Conversation

@prsauer

@prsauer prsauer commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extracts the settings table and layout constants (FRAME_WIDTH, PADDING_TOP, PADDING_BOTTOM, SETTINGS_TOP_INSET, SETTING_ROW_HEIGHT) to module scope
  • Frame height is now computed as PADDING_TOP + SETTINGS_TOP_INSET + #settings * SETTING_ROW_HEIGHT + PADDING_BOTTOM
  • Adding or removing a setting entry automatically adjusts the dialog height — no manual pixel tweaking required

Test plan

  • Open the GearStick config dialog (/gs config) and verify it renders correctly with all 7 current settings visible
  • Temporarily add an 8th entry to the settings table, reload UI, and confirm the dialog grows to fit
  • Temporarily remove a couple entries, reload UI, and confirm the dialog shrinks
  • Verify buttons (Summary, Reset All, Close) remain properly positioned at the bottom
  • Verify the dialog is still draggable and checkboxes toggle correctly

Munr-Job-ID: a6946c3d27484a25b85ff47a104abbe0
Munr-Session-ID: 0196bb43-90ab-7e4d-b70d-6e7e34e49aab

Move settings table and layout constants to module scope so the frame
height is derived from the number of entries. Adding or removing a
setting now automatically adjusts the dialog — no manual pixel tweaking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant