Skip to content

[docs] Restore wider maxWidth for disableToc pages#48260

Merged
LukasTy merged 1 commit intomui:masterfrom
LukasTy:claude/jolly-ishizaka
Apr 13, 2026
Merged

[docs] Restore wider maxWidth for disableToc pages#48260
LukasTy merged 1 commit intomui:masterfrom
LukasTy:claude/jolly-ishizaka

Conversation

@LukasTy
Copy link
Copy Markdown
Member

@LukasTy LukasTy commented Apr 10, 2026

  • Adjusts the maxWidth calculation for pages with disableToc enabled
  • Changes from fixed 105ch to calc(105ch + ${TOC_WIDTH / 2}px) to accommodate the space previously occupied by the table of contents
  • Improves layout consistency when the TOC is disabled

This is the particular change: https://github.com/mui/material-ui/pull/48159/changes#diff-887bd243079b0617f6c0b9125c7ef12adc7b06d155709b0ec775ea496de5e105R77

This also affected the Material Icons page:

v7 v9
Screenshot 2026-04-10 at 15 23 51 Screenshot 2026-04-10 at 15 24 19

Revert the maxWidth regression introduced in mui#48159, which narrowed
disableToc pages from calc(105ch + TOC_WIDTH/2) to 105ch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@LukasTy LukasTy added type: bug It doesn't behave as expected. docs Improvements or additions to the documentation. labels Apr 10, 2026
@LukasTy LukasTy changed the title docs: Restore wider maxWidth for disableToc pages [docs] Restore wider maxWidth for disableToc pages Apr 10, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Apr 10, 2026

Netlify deploy preview

https://deploy-preview-48260--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 70f797a

@LukasTy LukasTy marked this pull request as ready for review April 10, 2026 13:45
Copy link
Copy Markdown
Contributor

@noraleonte noraleonte left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks for taking care of it 🎉

@LukasTy LukasTy merged commit 6dfd6e1 into mui:master Apr 13, 2026
20 of 21 checks passed
@LukasTy LukasTy deleted the claude/jolly-ishizaka branch April 13, 2026 09:00
@oliviertassinari oliviertassinari added type: regression A bug, but worse, it used to behave as expected. and removed type: bug It doesn't behave as expected. labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants