fix: center icons on buttons

This commit is contained in:
2026-03-15 17:07:16 +02:00
parent f688768ca7
commit 058f784b05

View File

@@ -21,16 +21,24 @@ import { createTheme, type Theme } from "@mui/material/styles";
export function createAppTheme(mode: "light" | "dark"): Theme { export function createAppTheme(mode: "light" | "dark"): Theme {
return createTheme({ return createTheme({
palette: {
mode,
},
components: { components: {
MuiButton: {
styleOverrides: {
startIcon: {
alignItems: "center",
display: "flex",
},
},
},
MuiDialog: { MuiDialog: {
defaultProps: { defaultProps: {
maxWidth: "lg",
fullWidth: true, fullWidth: true,
maxWidth: "lg",
}, },
}, },
}, },
palette: {
mode,
},
}); });
} }