Skip to content

Commit bded5d0

Browse files
committed
chore: removes unnecessary width and height from body, content and surface
1 parent 8b38870 commit bded5d0

3 files changed

Lines changed: 0 additions & 4 deletions

File tree

packages/react-components/react-dialog/src/components/DialogBody/useDialogBodyStyles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ const useStyles = makeStyles({
2525
'&::backdrop': {
2626
backgroundColor: 'rgba(0, 0, 0, 0.4)',
2727
},
28-
width: `100%`,
29-
height: 'fit-content',
3028
maxHeight: `calc(100vh - 2 * ${SURFACE_PADDING})`,
3129
boxSizing: 'border-box',
3230
gridTemplateRows: 'auto 1fr auto',

packages/react-components/react-dialog/src/components/DialogContent/useDialogContentStyles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export const dialogContentClassNames: SlotClassNames<DialogContentSlots> = {
1313
*/
1414
const useStyles = makeStyles({
1515
root: {
16-
width: '100%',
1716
overflowY: 'auto',
1817
minHeight: '32px',
1918
boxSizing: 'border-box',

packages/react-components/react-dialog/src/components/DialogSurface/useDialogSurfaceStyles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const useStyles = makeStyles({
3434
backgroundColor: 'rgba(0, 0, 0, 0.4)',
3535
},
3636
position: 'fixed',
37-
width: '100%',
3837
height: 'fit-content',
3938
maxWidth: '600px',
4039
maxHeight: '100vh',

0 commit comments

Comments
 (0)