Skip to content

Commit

Permalink
[TreeView][docs] Fix layout shift on demos (#12816)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanivan authored Apr 18, 2024
1 parent 70faafc commit 61575ee
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function TrackItemExpansionToggle() {
</Typography>
)}

<Box sx={{ minHeight: 200, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<RichTreeView
items={MUI_X_PRODUCTS}
onItemExpansionToggle={handleItemExpansionToggle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function TrackItemExpansionToggle() {
Last action: {action.isExpanded ? 'expand' : 'collapse'} {action.itemId}
</Typography>
)}
<Box sx={{ minHeight: 200, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<RichTreeView
items={MUI_X_PRODUCTS}
onItemExpansionToggle={handleItemExpansionToggle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Last action: {action.isExpanded ? 'expand' : 'collapse'} {action.itemId}
</Typography>
)}
<Box sx={{ minHeight: 200, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<RichTreeView
items={MUI_X_PRODUCTS}
onItemExpansionToggle={handleItemExpansionToggle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function TrackItemSelectionToggle() {
? 'No item selection recorded'
: `Last selected item: ${lastSelectedItem}`}
</Typography>
<Box sx={{ minHeight: 200, minWidth: 250, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<RichTreeView
items={MUI_X_PRODUCTS}
onItemSelectionToggle={handleItemSelectionToggle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function TrackItemSelectionToggle() {
? 'No item selection recorded'
: `Last selected item: ${lastSelectedItem}`}
</Typography>
<Box sx={{ minHeight: 200, minWidth: 250, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<RichTreeView
items={MUI_X_PRODUCTS}
onItemSelectionToggle={handleItemSelectionToggle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
? 'No item selection recorded'
: `Last selected item: ${lastSelectedItem}`}
</Typography>
<Box sx={{ minHeight: 200, minWidth: 250, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<RichTreeView
items={MUI_X_PRODUCTS}
onItemSelectionToggle={handleItemSelectionToggle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function TrackItemExpansionToggle() {
</Typography>
)}

<Box sx={{ minHeight: 200, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<SimpleTreeView onItemExpansionToggle={handleItemExpansionToggle}>
<TreeItem itemId="grid" label="Data Grid">
<TreeItem itemId="grid-community" label="@mui/x-data-grid" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function TrackItemExpansionToggle() {
Last action: {action.isExpanded ? 'expand' : 'collapse'} {action.itemId}
</Typography>
)}
<Box sx={{ minHeight: 200, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<SimpleTreeView onItemExpansionToggle={handleItemExpansionToggle}>
<TreeItem itemId="grid" label="Data Grid">
<TreeItem itemId="grid-community" label="@mui/x-data-grid" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function TrackItemSelectionToggle() {
? 'No item selection recorded'
: `Last selected item: ${lastSelectedItem}`}
</Typography>
<Box sx={{ minHeight: 200, minWidth: 250, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<SimpleTreeView onItemSelectionToggle={handleItemSelectionToggle}>
<TreeItem itemId="grid" label="Data Grid">
<TreeItem itemId="grid-community" label="@mui/x-data-grid" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function TrackItemSelectionToggle() {
? 'No item selection recorded'
: `Last selected item: ${lastSelectedItem}`}
</Typography>
<Box sx={{ minHeight: 200, minWidth: 250, flexGrow: 1 }}>
<Box sx={{ minHeight: 200, minWidth: 300, flexGrow: 1 }}>
<SimpleTreeView onItemSelectionToggle={handleItemSelectionToggle}>
<TreeItem itemId="grid" label="Data Grid">
<TreeItem itemId="grid-community" label="@mui/x-data-grid" />
Expand Down

0 comments on commit 61575ee

Please sign in to comment.