Skip to content

Conversation

@JayGeorge
Copy link
Contributor

@JayGeorge JayGeorge commented Jan 30, 2026

Description of the Problem

Sometimes the new expand layout control button in the header doesn't appear to do anything because the content wrapper is already narrower than the available width, so it has no effect on the current page.

For example, on the Create screens, the button doesn't appear to do anything

2026-01-30 ast 16 20 49@2x

What this PR Does

  • Tests for a smaller inner wrapper using a CSS selector and hides the button if a smaller wrapper is present

How to Reproduce

  1. Go to page with a smaller width such as create collection, a dashboard with no widgets, utilities index, cache manager, search utility, configure sites, user groups index, permissions index, and try to press the expand layout width button
  2. After this commit you won't see the button on those pages

@jackmcdade
Copy link
Member

Smart!

@jackmcdade jackmcdade merged commit 79f6059 into 6.x Jan 30, 2026
11 checks passed
@jackmcdade jackmcdade deleted the hide-max-width-control-when-its-ineffective branch January 30, 2026 18:24
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.

3 participants