fix(web): stop Tailwind v4.3 container capping content below 1400px #340
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-338-container-fills-viewport"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tailwind CSS v4.3.0 ships a built-in
containerutility that emits a max-width at every breakpoint (sm 40rem through 2xl 96rem). Those core rules override the repo's custom@utility container(which intended full width plus a 2rem gutter, capped only at 1400px), so.containercontent was sequestered in a box narrower than the viewport at every width below 1400px: 768px on an 800px screen, 1024px on a 1200px screen, 1280px on a 1366px screen. The public / marketing shell (header, footer, hero and app-grid sections all usecontainer) therefore did not fill the page. The dashboard and admin shells use a flex layout with nocontainerand were unaffected.Add
max-width: noneto the base of the custom@utility container. It is emitted after the core breakpoint rules, so it overrides their caps and restores the intended full-width behaviour below 1400px; the existing@media (width >= 1400px)block then re-applies the single 1400px cap on very wide screens. Verified in a headless browser:.containernow measures full viewport width at 800/1000/1200/1366px and caps at 1400px at 1440/1600px, while the dashboard shell still fills the page.Regenerate the committed assets/styles.css with the production
build:cssinvocation so the tracked artifact matches input.css.#BUNYIP-338