Skip to content

Conversation

@JayGeorge
Copy link

@JayGeorge JayGeorge commented Jan 22, 2026

Description of the Problem

As described in #13610 some fields, especially with text, can feel unwieldy on larger screens, when the layout is full-width.

We made the container full-width for v6 after people requested it, and this is a consequence.

What this PR Does

  • This PR allows users to toggle between an expanded layout and a constrained layout—constrained being the default.
  • The control for toggling is in the top right, next to "visit site" and the user's avatar. You can see this in the screenshots below.
    • I think this is a good place because it's a personalisation
  • The control is only visible at higher widths since otherwise it would have no discernible effect and might be confusing
  • I've increased the widely used max-width-5xl to a consistent default, which I think is a good max-width—a little wider than v5 but not too utilitarian that it's distracting for writing
  • Closes [6.x] Long Text width in Bard & Markdown #13610

Screenshots

The new consistent max-width, which is called max-w-page

Here's the new consistent max-width—slightly wider than before but still very usable

2026-01-22 at 16 15 21@2x

max-w-page for an entry

2026-01-22 at 16 17 51@2x

How to Reproduce

  1. Expand the window to a width greater than 1800px to see the "Expand Layout" control in the top right, next to the search bar.
  2. Click it to toggle between a constrained/expanded layout across the site.

Note

Introduces a controllable, consistent content width across the Control Panel with a user-toggleable constrained/expanded layout.

  • Adds use-max-width-toggle composable with localStorage persistence; provided via layout and used in Layout.vue to conditionally apply max-w-page
  • New header button (visible on very wide screens) to toggle layout; uses new icons zoom-fit-screen/fit-screen and animate-pulse-on-appearance
  • Defines --max-width-page: 90rem and utility max-w-page; replaces prior max-w-5xl across pages/components (eg. publish forms, indexes, modals, Bard/Markdown fullscreen)
  • Adds animation utilities (pulse-on-appearance) and minor modal width tweak in SetPicker
  • Updates test/template markup to use max-w-page

Written by Cursor Bugbot for commit 388b0d3. This will update automatically on new commits. Configure here.

@jasonvarga
Copy link
Member

I like it!

However - this is subjective - But I think the new max width is too wide for most pages.

For publish forms when you're authoring content and there's a sidebar, sure. But for most other pages I think it might be too much.

Most other pages are listings of some sort. Unless there are a ton of columns, you end up with a comical amount of horizontal empty space.

Before:

CleanShot 2026-01-22 at 12 35 16

After:

CleanShot 2026-01-22 at 12 34 53

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.


<DocsCallout :topic="__('Collections')" url="collections" />
</div>
<DocsCallout :topic="__('Collections')" url="collections" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Max-width toggle ineffective for pages with own wrappers

Medium Severity

The layout max-width toggle in Layout.vue conditionally applies max-w-page based on isMaxWidthEnabled. However, most pages (like addons/Index.vue, blueprints/Edit.vue, forms/Index.vue, etc.) still have their own <div class="max-w-page mx-auto"> wrappers. When the toggle is off (expanded layout), these inner wrappers still constrain the content to 90rem, making the toggle ineffective. Only collections/Index.vue had its wrapper removed, so only that page actually responds to the toggle. Users clicking the toggle button will see no change on most pages.

Additional Locations (2)

Fix in Cursor Fix in Web

@JayGeorge
Copy link
Author

I tweaked the animation to feel a bit smoother and more responsive.

FYI make sure you have devtools closed when you check these out on the branch—the animations are not as smooth with devtools open.

Before

2026-01-24 at 10 24 21

After

2026-01-24 at 10 21 16

@duncanmcclean duncanmcclean linked an issue Jan 24, 2026 that may be closed by this pull request
…ller screens max-w-6xl feels too wide, but on larger screens max-w-5xl feels to narrow
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.

[6.x] Long Text width in Bard & Markdown

4 participants