Skip to content

[6.x] Fit the global header on very narrow screens - #16177

Merged
jaygeorge merged 2 commits into
6.xfrom
16177-global-header-narrow-screens
Dec 4, 2026
Merged

jaygeorge merged 2 commits into
6.xfrom
16177-global-header-narrow-screens

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Problem

Below 350px the global header doesn't fit. The site selector ("English Site"), Search, Support, View Site and the user menu never shrink, so the header scrolls sideways and View Site and the avatar are cut off. The logo was already hidden below 350px to make room, which wasn't enough and left a big empty gap where it used to be.

image

What this PR Does

Below 350px only:

  • Tighter gaps between the header's groups (8px rather than 32px)
  • The site selector shows just the globe. The site name stays in the accessibility tree, so the selected site is still announced
  • The Statamic mark comes back, with the name visually hidden rather than the whole link, so the dashboard link is reachable again

At 322px the header now fits exactly. On form pages, the Save button's offset is dropped below 350px so it stays clear of the tabs dropdown with the smaller gap. Form pages still scroll a little at that width, as they did before, since the tabs and Save button add about 130px.

The obvious alternative was hiding more buttons, but the site name is the one control that's wide for no good reason: the globe still says what it is, and the name is a click away.

Before / After

image

How to Reproduce

  1. Open any Control Panel page on a multi-site install
  2. Narrow the window (or DevTools' responsive mode) to 322px wide
  3. The avatar and View Site are cut off, and the logo is missing

Below 350px the header overflowed: the site selector and buttons never shrink, so the avatar was cut off and the logo was hidden to make room.

- Tighter gaps between the header's groups
- The site selector shows just the globe, with the site name for screen readers
- The logo mark shows again, with the name for screen readers
@jaygeorge
jaygeorge merged commit 75e6332 into 6.x Dec 4, 2026
66 checks passed
@jaygeorge
jaygeorge deleted the 16177-global-header-narrow-screens branch December 4, 2026 14:13
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