-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
[core] Fix some DashboardLayout bugs and make some docs examples more consis… #3905
Conversation
import { AppProvider } from '@toolpad/core/AppProvider'; | ||
import { DashboardLayout } from '@toolpad/core/DashboardLayout'; | ||
|
||
const NAVIGATION = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it's adding all this boilerplate here too but this way it matches the other examples...
<Toolbar /> | ||
<div>{children}</div> | ||
{children} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need a div
here (unrelated though)
component="main" | ||
sx={{ | ||
flexGrow: 1, | ||
minWidth: { xs: isMobileNavigationOpen ? '100vw' : 'auto', md: 'auto' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a comment to the github issue on mui core repository that tracks the issues with the responsive drawer demo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Raised the issue in mui/material-ui#43244 and added todo comments in 5658dc0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just add a comment so that we remember what this hack is for and know when we can revert it.
Fixes the issues mentioned here #3893 (comment):
100vw
to set an explicit width)https://deploy-preview-3905--mui-toolpad-docs.netlify.app/toolpad
https://deploy-preview-3905--mui-toolpad-docs.netlify.app/toolpad/core/react-dashboard-layout/