Skip to content

Commit

Permalink
[docs] Fix mobile scrollbar column resize (#10455)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Sep 24, 2023
1 parent 3d6052f commit 85460fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions docs/data/data-grid/column-dimensions/ColumnAutosizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ export default function ColumnAutosizing() {
return (
<div style={{ width: '100%' }}>
<Stack
spacing={2}
spacing={1}
direction="row"
alignItems="center"
sx={{ marginBottom: '1em' }}
sx={{ mb: 1 }}
useFlexGap
flexWrap="wrap"
>
<Button
variant="outlined"
Expand All @@ -82,6 +84,7 @@ export default function ColumnAutosizing() {
Autosize columns
</Button>
<FormControlLabel
sx={{ ml: 0 }}
control={
<Checkbox
checked={includeHeaders}
Expand All @@ -91,6 +94,7 @@ export default function ColumnAutosizing() {
label="Include headers"
/>
<FormControlLabel
sx={{ ml: 0 }}
control={
<Checkbox
checked={includeOutliers}
Expand All @@ -107,6 +111,7 @@ export default function ColumnAutosizing() {
sx={{ width: '12ch' }}
/>
<FormControlLabel
sx={{ ml: 0 }}
control={
<Checkbox
checked={expand}
Expand Down
9 changes: 7 additions & 2 deletions docs/data/data-grid/column-dimensions/ColumnAutosizing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ export default function ColumnAutosizing() {
return (
<div style={{ width: '100%' }}>
<Stack
spacing={2}
spacing={1}
direction="row"
alignItems="center"
sx={{ marginBottom: '1em' }}
sx={{ mb: 1 }}
useFlexGap
flexWrap="wrap"
>
<Button
variant="outlined"
Expand All @@ -85,6 +87,7 @@ export default function ColumnAutosizing() {
Autosize columns
</Button>
<FormControlLabel
sx={{ ml: 0 }}
control={
<Checkbox
checked={includeHeaders}
Expand All @@ -94,6 +97,7 @@ export default function ColumnAutosizing() {
label="Include headers"
/>
<FormControlLabel
sx={{ ml: 0 }}
control={
<Checkbox
checked={includeOutliers}
Expand All @@ -110,6 +114,7 @@ export default function ColumnAutosizing() {
sx={{ width: '12ch' }}
/>
<FormControlLabel
sx={{ ml: 0 }}
control={
<Checkbox
checked={expand}
Expand Down

0 comments on commit 85460fb

Please sign in to comment.