Skip to content

Commit

Permalink
Merge pull request #1476 from kianamcc/SWC-7169-V2
Browse files Browse the repository at this point in the history
  • Loading branch information
kianamcc authored Jan 3, 2025
2 parents ca3710c + a8f6652 commit 41ae39b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/synapse-react-client/src/components/DialogBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
SxProps,
} from '@mui/material'
import { ReactNode } from 'react'

import { HelpPopover, HelpPopoverProps } from './HelpPopover/HelpPopover'
import { spreadSx } from '../theme/spreadSx'

const EMPTY_OBJECT = {}

Expand Down Expand Up @@ -102,19 +102,19 @@ export const DialogBase = ({
open={open}
className={className}
onClose={() => onCancel()}
sx={sx}
{...DialogProps}
PaperProps={{
sx: theme => ({
[theme.breakpoints.down('sm')]: {
sx={spreadSx(sx, theme => ({
[theme.breakpoints.down('sm')]: {
width: '100vw',
'.MuiDialog-container > .MuiPaper-root': {
padding: '33px',
margin: 0,
width: '100%',
height: '100%',
maxHeight: 'unset',
padding: '16px',
},
}),
}}
},
}))}
{...DialogProps}
>
<DialogBaseTitle
title={title}
Expand Down

0 comments on commit 41ae39b

Please sign in to comment.