Skip to content

[docs] Restore wider maxWidth for disableToc pages#48260

Open
LukasTy wants to merge 1 commit intomui:masterfrom
LukasTy:claude/jolly-ishizaka
Open

[docs] Restore wider maxWidth for disableToc pages#48260
LukasTy wants to merge 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
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: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants