fix: center icons in Alert and CartSnackbar components

This commit is contained in:
Kirill
2026-05-25 19:12:06 +05:00
parent a40c68141e
commit 849e96511e
3 changed files with 23 additions and 0 deletions
+13
View File
@@ -206,8 +206,21 @@ function AppThemeInner({ children }: PropsWithChildren) {
border: '1px solid',
boxShadow: 'none',
fontWeight: 500,
alignItems: 'center',
padding: '8px 12px',
'& .MuiAlert-icon': {
padding: 0,
marginRight: 12,
display: 'flex',
alignItems: 'center',
},
'& .MuiAlert-message': {
padding: 0,
},
'& .MuiAlert-action': {
padding: 0,
marginRight: 0,
marginLeft: 8,
},
},
standardSuccess: {
+10
View File
@@ -44,12 +44,22 @@ export function CartSnackbar() {
border: 'none',
boxShadow: 'none',
p: 1.5,
alignItems: 'center',
'& .MuiAlert-icon': {
padding: 0,
mr: 1.5,
display: 'flex',
alignItems: 'center',
},
'& .MuiAlert-message': {
padding: 0,
fontSize: '0.875rem',
fontWeight: 600,
},
'& .MuiAlert-action': {
padding: 0,
mr: 0,
ml: 1,
},
}}
action={