Add spacing to confirmation dialog buttons

This commit is contained in:
schroda
2025-03-27 12:43:58 +01:00
parent 62bd4fdfb2
commit 3c1cb539ad

View File

@@ -77,10 +77,11 @@ export const ConfirmDialog = ({
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Stack <Stack
direction="row"
sx={{ sx={{
flexDirection: 'row',
justifyContent: actions.extra.show ? 'space-between' : 'end', justifyContent: actions.extra.show ? 'space-between' : 'end',
width: '100%', width: '100%',
gap: 1,
}} }}
> >
{actions.extra.show && ( {actions.extra.show && (
@@ -88,7 +89,12 @@ export const ConfirmDialog = ({
{actions.extra.title} {actions.extra.title}
</Button> </Button>
)} )}
<Stack direction="row"> <Stack
sx={{
flexDirection: 'row',
gap: 1,
}}
>
{actions.cancel.show && ( {actions.cancel.show && (
<Button onClick={onCancel} variant={actions.cancel.contain ? 'contained' : undefined}> <Button onClick={onCancel} variant={actions.cancel.contain ? 'contained' : undefined}>
{actions.cancel.title} {actions.cancel.title}