Legacy UI Fixes
This commit is contained in:
1 parent
278964500b
commit
3acfde97df
2 files changed
+13
-13
No files matched your search
@@ -21,28 +21,28 @@ const StatusBox = ({ title, value, status }) => {
|
|||||||
if (status === "up") {
|
if (status === "up") {
|
||||||
color = theme.palette.success.lowContrast;
|
color = theme.palette.success.lowContrast;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, top: 8 }}>
|
<Box sx={{ ...sharedStyles, top: theme.spacing(6), right: theme.spacing(6) }}>
|
||||||
<TaskAltOutlinedIcon fontSize="small" />
|
<TaskAltOutlinedIcon fontSize="small" />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
} else if (status === "down") {
|
} else if (status === "down") {
|
||||||
color = theme.palette.error.lowContrast;
|
color = theme.palette.error.lowContrast;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, transform: "rotate(180deg)", top: 5 }}>
|
<Box sx={{ ...sharedStyles, top: theme.spacing(6), right: theme.spacing(6) }}>
|
||||||
<CancelOutlinedIcon fontSize="small" />
|
<CancelOutlinedIcon fontSize="small" />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
} else if (status === "paused") {
|
} else if (status === "paused") {
|
||||||
color = theme.palette.warning.lowContrast;
|
color = theme.palette.warning.lowContrast;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, top: 12, right: 12 }}>
|
<Box sx={{ ...sharedStyles, top: theme.spacing(6), right: theme.spacing(6) }}>
|
||||||
<WarningAmberRoundedIcon fontSize="small" />
|
<WarningAmberRoundedIcon fontSize="small" />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
color = theme.palette.accent.main;
|
color = theme.palette.accent.main;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, top: 12, right: 12 }}>
|
<Box sx={{ ...sharedStyles, top: theme.spacing(6), right: theme.spacing(6) }}>
|
||||||
<MonitorHeartOutlinedIcon fontSize="small" />
|
<MonitorHeartOutlinedIcon fontSize="small" />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
@@ -84,15 +84,15 @@ const StatusBox = ({ title, value, status }) => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="flex-start"
|
alignItems="flex-start"
|
||||||
fontSize={36}
|
fontSize={theme.typography.h1.fontSize}
|
||||||
fontWeight={600}
|
fontWeight={600}
|
||||||
color={color}
|
color={color}
|
||||||
gap="2px"
|
gap={theme.spacing(1)}
|
||||||
>
|
>
|
||||||
{value}
|
{value}
|
||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
fontSize={20}
|
fontSize={theme.typography.label.fontSize}
|
||||||
fontWeight={300}
|
fontWeight={300}
|
||||||
color={theme.palette.primary.contrastTextSecondary}
|
color={theme.palette.primary.contrastTextSecondary}
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
@@ -19,21 +19,21 @@ const StatusBox = ({ title, value, status }) => {
|
|||||||
if (status === "up") {
|
if (status === "up") {
|
||||||
color = theme.palette.success.lowContrast;
|
color = theme.palette.success.lowContrast;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, top: 8 }}>
|
<Box sx={{ ...sharedStyles, top: theme.spacing(4) }}>
|
||||||
<Arrow />
|
<Arrow />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
} else if (status === "down") {
|
} else if (status === "down") {
|
||||||
color = theme.palette.error.lowContrast;
|
color = theme.palette.error.lowContrast;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, transform: "rotate(180deg)", top: 5 }}>
|
<Box sx={{ ...sharedStyles, transform: "rotate(180deg)", top: theme.spacing(2) }}>
|
||||||
<Arrow />
|
<Arrow />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
} else if (status === "paused") {
|
} else if (status === "paused") {
|
||||||
color = theme.palette.warning.lowContrast;
|
color = theme.palette.warning.lowContrast;
|
||||||
icon = (
|
icon = (
|
||||||
<Box sx={{ ...sharedStyles, top: 12, right: 12 }}>
|
<Box sx={{ ...sharedStyles, top: theme.spacing(6), right: theme.spacing(6) }}>
|
||||||
<ClockSnooze />
|
<ClockSnooze />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
@@ -75,15 +75,15 @@ const StatusBox = ({ title, value, status }) => {
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="flex-start"
|
alignItems="flex-start"
|
||||||
fontSize={36}
|
fontSize={theme.typography.h1.fontSize}
|
||||||
fontWeight={600}
|
fontWeight={600}
|
||||||
color={color}
|
color={color}
|
||||||
gap="2px"
|
gap={theme.spacing(1)}
|
||||||
>
|
>
|
||||||
{value}
|
{value}
|
||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
fontSize={20}
|
fontSize={theme.typography.label.fontSize}
|
||||||
fontWeight={300}
|
fontWeight={300}
|
||||||
color={theme.palette.primary.contrastTextSecondary}
|
color={theme.palette.primary.contrastTextSecondary}
|
||||||
sx={{
|
sx={{
|
||||||
|
|||||||
Reference in new issue
Block a user