Moved toast notif to top right and some other small fixes

This commit is contained in:
Daniel Cojocea committed 2024-08-30 12:19:24 -04:00
1 parent f132e8ebe5
commit 93c8ce6532
7 files changed
+20 -12

No files matched your search

@@ -120,6 +120,10 @@ const Field = forwardRef(
inputProps={{ inputProps={{
sx: { sx: {
color: theme.palette.text.secondary, color: theme.palette.text.secondary,
"&:-webkit-autofill": {
WebkitBoxShadow: `0 0 0 100px ${theme.palette.background.fill} inset`,
WebkitTextFillColor: theme.palette.text.secondary,
},
}, },
}} }}
sx={ sx={
-1
View File
@@ -8,7 +8,6 @@
} }
.auth button:not(.MuiIconButton-root), .auth button:not(.MuiIconButton-root),
.auth p, .auth p,
.auth .field input,
.auth span { .auth span {
font-size: var(--env-var-font-size-medium-plus); font-size: var(--env-var-font-size-medium-plus);
} }
@@ -12,8 +12,8 @@ const SkeletonLayout = () => {
return ( return (
<> <>
<Skeleton variant="rounded" width="15%" height={34} /> <Skeleton variant="rounded" width="15%" height={34} />
<Stack gap={theme.gap.xl} mt={theme.gap.medium}> <Stack gap={theme.spacing(20)} mt={theme.spacing(6)}>
<Stack direction="row" gap={theme.gap.small} mt={theme.gap.small}> <Stack direction="row" gap={theme.spacing(4)} mt={theme.spacing(4)}>
<Skeleton <Skeleton
variant="circular" variant="circular"
style={{ minWidth: 24, minHeight: 24 }} style={{ minWidth: 24, minHeight: 24 }}
@@ -23,13 +23,13 @@ const SkeletonLayout = () => {
variant="rounded" variant="rounded"
width="50%" width="50%"
height={24} height={24}
sx={{ mb: theme.gap.small }} sx={{ mb: theme.spacing(4) }}
/> />
<Skeleton variant="rounded" width="50%" height={18} /> <Skeleton variant="rounded" width="50%" height={18} />
</Box> </Box>
<Stack <Stack
direction="row" direction="row"
gap={theme.gap.medium} gap={theme.spacing(6)}
sx={{ sx={{
ml: "auto", ml: "auto",
alignSelf: "flex-end", alignSelf: "flex-end",
+6 -5
View File
@@ -23,16 +23,17 @@ const shadow =
const darkTheme = createTheme({ const darkTheme = createTheme({
typography: { fontFamily: fontFamilyDefault, fontSize: 13 }, typography: { fontFamily: fontFamilyDefault, fontSize: 13 },
palette: { palette: {
mode: "dark",
common: { main: "#1570ef" }, common: { main: "#1570ef" },
text: text, text: text,
background: background, background: background,
border: border, border: border,
info: { info: {
text: "#475467", text: text.primary,
main: "#475467", main: text.primary,
bg: "#ffffff", bg: background.main,
light: "#ffffff", light: background.main,
border: "#D0D5DD", border: border.light,
}, },
success: { success: {
text: "#079455", text: "#079455",
-1
View File
@@ -22,7 +22,6 @@ const shadow =
const lightTheme = createTheme({ const lightTheme = createTheme({
typography: { fontFamily: fontFamilyDefault, fontSize: 13 }, typography: { fontFamily: fontFamilyDefault, fontSize: 13 },
palette: { palette: {
mode: "dark",
common: { main: "#1570ef" }, common: { main: "#1570ef" },
text: text, text: text,
background: background, background: background,
+1 -1
View File
@@ -19,7 +19,7 @@ export const createToast = ({
config = {}, config = {},
}) => { }) => {
const toastConfig = { const toastConfig = {
position: "bottom-right", position: "top-right",
autoClose: 3000, autoClose: 3000,
hideProgressBar: true, hideProgressBar: true,
closeButton: false, closeButton: false,
+5
View File
@@ -67,6 +67,8 @@ body {
} }
.Toastify__toast-body .alert { .Toastify__toast-body .alert {
min-width: 150px; min-width: 150px;
padding: 5px 10px;
align-items: center;
} }
.Toastify [class^="Toastify__toast"] { .Toastify [class^="Toastify__toast"] {
padding: 0; padding: 0;
@@ -76,6 +78,9 @@ body {
min-height: 0; min-height: 0;
border-radius: 4px; border-radius: 4px;
} }
.Toastify [class*="Toastify__toast-theme"] {
background-color: transparent;
}
.MuiTouchRipple-root { .MuiTouchRipple-root {
display: none; display: none;