Skip to content

Settings UI polish: save-btn padding, form-row alignment, i18n key#51

Merged
AdaInTheLab merged 1 commit into
mainfrom
fix/settings-ui-polish
Apr 30, 2026
Merged

Settings UI polish: save-btn padding, form-row alignment, i18n key#51
AdaInTheLab merged 1 commit into
mainfrom
fix/settings-ui-polish

Conversation

@AdaInTheLab
Copy link
Copy Markdown
Collaborator

Summary

Three small fixes spotted in panel screenshots — bundled because they're all CSS/i18n polish touching the same file.

1. Save Settings button padding

Sat flush against the last card it followed. Added `margin-top: 1rem` to `.save-btn`. Applies globally across all Settings tabs since they all use the same class within `SettingsView.vue`.

2. Form-row alignment + breathing room

Tickets tab → Discord Integration card → three notification toggles visually stacked on top of each other. Cause: `.form-row` was missing `align-items: center` AND `margin-bottom`, so consecutive rows ran flush with no vertical separation. `.form-label`'s built-in 0.35rem bottom margin was the only thing separating them, but it pushed the row baseline downward instead of cleanly separating siblings.

Fix:

  • `.form-row` gets `align-items: center` + `margin-bottom: 0.5rem`
  • `.form-label` inside a `.form-row` gets `margin-bottom: 0` (its bottom margin is meaningful only when stacked above an input, not when sitting beside one)

3. Unresolved i18n key

Tickets tab → Ticket System card showed "SETTINGS.ENABLED" instead of "Enabled" — `t('settings.enabled')` resolved to the literal key because no such key exists. The "Enabled" string lives under `common.enabled`. Fixed the call site.

Files

File What
`frontend/src/views/SettingsView.vue` All three fixes — one CSS rule update + one CSS rule add + one i18n key change

Test plan

  • Pull, build, deploy
  • Hard-refresh panel
  • Tickets tab: "Enabled" label renders correctly (was "SETTINGS.ENABLED")
  • Tickets tab: three Discord notify toggles separated cleanly with breathing room (no visual stacking)
  • Save Settings button on every settings tab has visible top padding from the last card

🤖 Generated with Claude Code

Three small fixes spotted in panel screenshots:

1. Save Settings button sat flush against the last card it followed.
   Added margin-top: 1rem so it visually breathes. Applies globally
   across all Settings tabs (Vote Rewards, Tickets, Discord, etc.) since
   they all use the same .save-btn class within SettingsView.vue.

2. Tickets tab "Discord Integration" card showed three notification
   toggles visually stacked on top of each other. Cause: .form-row was
   missing align-items: center AND margin-bottom, so consecutive rows
   ran flush with no vertical breathing room. .form-label's built-in
   bottom margin was the only separator, which pushed the row baseline
   downward instead of separating siblings. Added align-items: center
   + 0.5rem margin-bottom on .form-row, and zeroed out .form-label's
   own bottom margin when nested inside a .form-row.

3. Tickets tab "Ticket System" card showed "SETTINGS.ENABLED" instead
   of "Enabled" — t('settings.enabled') resolved to the literal key
   because no such key exists. The "Enabled" string lives under
   common.enabled. Changed the call site to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@AdaInTheLab AdaInTheLab merged commit 082fb17 into main Apr 30, 2026
2 checks passed
@AdaInTheLab AdaInTheLab deleted the fix/settings-ui-polish branch April 30, 2026 16:35
@AdaInTheLab AdaInTheLab mentioned this pull request Apr 30, 2026
4 tasks
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