-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] API reference layout overflow #34085
Comments
@oliviertassinari Currently, the section has max-width of |
@siriwatknp I think that we should be careful about the max width. As far as I know, the value of a small max width is to limits the amount of horizontal distance the eye has to travel before it has to go to the next line. The longer the distance is, the more likely our eye will land on the wrong next line. It's why the blog post area has a smaller max width than the docs, it's mostly content. So if we increase the max width here, I think that it will improve the experience for the API tables, that are often on the API pages, but make it worse for the rest of the docs. Maybe only increasing the max-width on the API pages would make sense, but it would still be an issue for people like me that don't have an external monitor and API tables outside of the API pages. I think that the above proposal could solve this without the need to change the max width. Previous attempts at problem: #30713 and #29062 I would propose a solution in this direction: #31745 (comment), an extract:
|
There are also discussions about this problem in https://www.figma.com/file/MfirV6NOFAp2xxAZX1QU1V/Documentation?type=design&node-id=1475-18203&t=knHF31Rj2y4fLvgB-0. |
The latest shape of the proposed solution on this: ![]() It would solve #36544 too. |
Link to my feedback on this issue in a similar thread. |
Duplicates
Latest version
Current behavior 😯
Because of the layout/styling of pages in MUI docs, when there is overflow content, it's annoying to have to scroll to read when there is so much empty space.
Screen.Recording.2022-08-26.at.2.06.34.PM.mov
Expected behavior 🤔
I shouldn't have to scroll if the dimensions of my browser are large enough
Steps to reproduce 🕹
Steps:
Context 🔦
Trying to read the docs
Your environment 🌎
npx @mui/envinfo
Benchmarks
The text was updated successfully, but these errors were encountered: