mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Adjust modal styles: make it taller always
This commit is contained in:
@@ -39,8 +39,14 @@ export const EditingModal = ({
|
||||
{' '}
|
||||
{children}
|
||||
</Box>
|
||||
{onSave && <Button onClick={() => void closeWithSave()}>Save</Button>}
|
||||
<Button onClick={() => setOpen(false)}>{onSave ? 'Cancel' : 'Close'}</Button>
|
||||
{onSave && (
|
||||
<Button sx={{ marginRight: '0.5em' }} variant="contained" onClick={() => void closeWithSave()}>
|
||||
Save
|
||||
</Button>
|
||||
)}
|
||||
<Button variant="contained" onClick={() => setOpen(false)}>
|
||||
{onSave ? 'Cancel' : 'Close'}
|
||||
</Button>
|
||||
</Box>
|
||||
</Modal>
|
||||
</Box>
|
||||
|
||||
@@ -4,7 +4,7 @@ export const modalStyle = {
|
||||
left: '50%',
|
||||
transform: 'translate(-50%, -50%)',
|
||||
width: 1200,
|
||||
maxHeight: '90%',
|
||||
height: '90%',
|
||||
bgcolor: 'background.paper',
|
||||
border: '2px solid #000',
|
||||
overflow: 'auto',
|
||||
|
||||
Reference in New Issue
Block a user