Skip to content

fix(ui): correct stack-form field-hint and checkbox layout on settings pages#636

Merged
CybotTM merged 1 commit into
mainfrom
fix/settings-stackform-layout
Jul 15, 2026
Merged

fix(ui): correct stack-form field-hint and checkbox layout on settings pages#636
CybotTM merged 1 commit into
mainfrom
fix/settings-stackform-layout

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary

Fixes two form-layout regressions from #635 (shipped in v6.3.1) that landed on the settings pages. #635's .stack-form rules were verified against Billing/Auswertung but not the settings, where the field and checkbox structures differ (a .field can hold a .field-hint; a .field-check can hold three children).

Fixes

  • Date-field hint floated to the far right (/ui/settings/sync): the label right-align (.stack-form .field > span) also caught the DateField's .field-hint span, which spans the full width — pushing "YYYY-MM-DD" to the right edge. Scoped the right-align to the label (:first-child); a field's hint now sits under its control (column 2).
  • A checkbox with its own hint stranded the box above its label (Personio opt-in): sparse grid auto-placement — the checkbox has an explicit column 2 and precedes the label in the DOM — pushed the label onto row 2, leaving the box alone above it. Pinned the rows explicitly: label + box on row 1, the hint under the box on row 2.

Verification

Visual check at 1440px on /ui/settings/sync and /ui/settings/account: date hints sit under the date fields, checkboxes align with their labels on one row, and a per-checkbox hint sits below the box. CSS-only — CI re-verifies tests/typecheck/lint.

Copilot AI review requested due to automatic review settings July 15, 2026 18:04

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.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refines the grid layout for form fields in frontend/src/styles/app.css by aligning field hints under their controls, scoping label alignments to the first child span, and explicitly pinning rows for checkbox fields. The feedback points out that the .stack-form .field-check > span selector is too broad and could accidentally match a .field-hint if it is implemented as a span, suggesting to scope it using :not(.field-hint) to prevent layout issues.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread frontend/src/styles/app.css Outdated
…s pages

The #635 stack-form rules were verified against Billing/Auswertung but not the
settings pages, where two layouts broke:

- A DateField's "YYYY-MM-DD" hint floated to the far right: the label right-align
  (`.field > span`) also caught the hint span, which spans the full width. Scope
  the right-align to the label (`:first-child`) and place a field's hint under its
  control (column 2).
- A checkbox with its own hint (Personio) stranded the box above its label:
  sparse grid auto-placement — the box has an explicit column and precedes the
  label in the DOM — can't put the later label back on row 1. Pin the rows: label
  + box on row 1, hint under the box on row 2.

Verified at 1440px on the sync and account settings pages.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@CybotTM
CybotTM force-pushed the fix/settings-stackform-layout branch from de14476 to 6a3cd07 Compare July 15, 2026 21:11
@sonarqubecloud

Copy link
Copy Markdown

@CybotTM
CybotTM merged commit 4d456a3 into main Jul 15, 2026
17 checks passed
@CybotTM
CybotTM deleted the fix/settings-stackform-layout branch July 15, 2026 21:15
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