Skip to content

Keep responsive layouts when the app's stylesheet loads last - #23

Merged
gdarko merged 2 commits into
mainfrom
fix/order-independent-breakpoints
Oct 24, 2026
Merged

gdarko merged 2 commits into
mainfrom
fix/order-independent-breakpoints

Conversation

@gdarko

@gdarko gdarko commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

The host adds its stylesheet again after the module sheets, so its plain utilities (.w-full, .grid-cols-1, .hidden) win over this module's breakpoint variants whenever the host doesn't happen to emit the same variant. Today that left the report totals in 2 columns on desktop, the unbilled-time filters full width and the timer chip's padding unchanged at md; the other grids worked only because the host currently ships the same variants.

Each responsive property is now split into ranges that never overlap (max-sm:grid-cols-1 sm:max-lg:grid-cols-2 lg:grid-cols-4, max-lg:flex-col), so only one class applies at any width. The billing filters get a wrapper that owns the width, since BaseInputGroup carries its own w-full. Checked at 1440, 800 and 390 px.

@gdarko
gdarko merged commit 3561679 into main Oct 24, 2026
2 checks passed
@gdarko
gdarko deleted the fix/order-independent-breakpoints branch October 24, 2026 15:22
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