Files
tubestation/browser/components/newtab
Daniel Holbert 5912711f38 Bug 1942539: Change new tab to use min-width rather than align-items to center some content while still addressing overflow edge cases. r=reemhamz,home-newtab-reviewers
The align-items:center styling was preventing content from stretching to
fill the container in some cases, causing tiles to collapse as noted in
the associated bugzilla bug.

We can't just remove that styling, though, because there are also cases where
`main` has content that's wider than its specified size and expects to be
centered.  So, this patch accounts for that by making `main` at least as wide
as its content, so that wide content remains centered because `main` itself
(which will now grow to fit that content) is centered.

Differential Revision: https://phabricator.services.mozilla.com/D235393
2025-01-24 05:05:05 +00:00
..