border
This commit is contained in:
1 parent
33aab936fe
commit
3bffe61b42
1 file changed
+10
-9
@@ -65,6 +65,12 @@ export const HeatmapResponseTime = ({
|
|||||||
mid: theme.palette.warning.lowContrast,
|
mid: theme.palette.warning.lowContrast,
|
||||||
end: theme.palette.error.lowContrast,
|
end: theme.palette.error.lowContrast,
|
||||||
});
|
});
|
||||||
|
const statusBorder =
|
||||||
|
check.status === "placeholder"
|
||||||
|
? theme.palette.primary.lowContrast
|
||||||
|
: check.status === "up"
|
||||||
|
? theme.palette.success.main
|
||||||
|
: theme.palette.error.main;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HeatmapResponseTimeTooltip key={`${check}-${index}`} check={check}>
|
<HeatmapResponseTimeTooltip key={`${check}-${index}`} check={check}>
|
||||||
@@ -81,15 +87,10 @@ export const HeatmapResponseTime = ({
|
|||||||
gap: theme.spacing(2),
|
gap: theme.spacing(2),
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box sx={{ position: "relative", width: "100%", aspectRatio: "10" }}>
|
||||||
sx={{
|
<Box sx={{ position: "absolute", inset: 0, bgcolor: statusBg, borderRadius: theme.spacing(0.5), ...availabilityCellSx }} />
|
||||||
width: "100%",
|
<Box sx={{ position: "absolute", inset: 0, pointerEvents: "none", borderRadius: theme.spacing(0.5), boxShadow: `inset 0 0 0 2px ${statusBorder}` }} />
|
||||||
aspectRatio: "10",
|
</Box>
|
||||||
bgcolor: statusBg,
|
|
||||||
borderRadius: theme.spacing(0.5),
|
|
||||||
...availabilityCellSx,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
|
|||||||
Reference in new issue
Block a user