Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b11e716

Browse files
committed
update padding for buttons
1 parent 4ab980e commit b11e716

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

site/src/components/ConfirmDialog/ConfirmDialog.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ const useStyles = makeStyles((theme) => ({
5151
background: props.type === "info" ? theme.palette.primary.main : theme.palette.background.paper,
5252
border: `1px solid ${theme.palette.divider}`,
5353
},
54+
"& .MuiDialogActions-spacing": {
55+
padding: `0 ${theme.spacing(3.75)}px ${theme.spacing(3.75)}px`,
56+
}
5457
}),
5558
dialogContent: (props: StyleProps) => ({
5659
color: props.type === "info" ? theme.palette.primary.contrastText : theme.palette.text.secondary,

site/src/components/Dialog/Dialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const useButtonStyles = makeStyles((theme) => ({
148148
borderRadius: theme.shape.borderRadius,
149149
fontSize: theme.typography.h6.fontSize,
150150
fontWeight: theme.typography.h5.fontWeight,
151-
padding: theme.spacing(2.25),
151+
padding: `${theme.spacing(0.75)}px ${theme.spacing(2)}px`,
152152
width: "100%",
153153
boxShadow: "none",
154154
},

0 commit comments

Comments
 (0)