Stop event propagation
This commit is contained in:
1 parent
ec79bcd500
commit
8d75c52a72
1 file changed
+15
-5
@@ -7,7 +7,17 @@ const BarChart = ({ checks = [] }) => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack direction="row" flexWrap="nowrap" gap={theme.gap.xs} height="50px">
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
flexWrap="nowrap"
|
||||||
|
gap="3px"
|
||||||
|
height="50px"
|
||||||
|
width="fit-content"
|
||||||
|
onClick={(event) => event.stopPropagation()}
|
||||||
|
sx={{
|
||||||
|
cursor: "default",
|
||||||
|
}}
|
||||||
|
>
|
||||||
{checks.map((check) => (
|
{checks.map((check) => (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
@@ -57,7 +67,7 @@ const BarChart = ({ checks = [] }) => {
|
|||||||
{
|
{
|
||||||
name: "offset",
|
name: "offset",
|
||||||
options: {
|
options: {
|
||||||
offset: [0, -12],
|
offset: [0, -10],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -66,13 +76,13 @@ const BarChart = ({ checks = [] }) => {
|
|||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
position="relative"
|
position="relative"
|
||||||
width="8px"
|
width="9px"
|
||||||
height="100%"
|
height="100%"
|
||||||
backgroundColor={
|
backgroundColor={
|
||||||
check.status ? theme.label.up.bgColor : theme.label.down.bgColor
|
check.status ? theme.label.up.bgColor : theme.label.down.bgColor
|
||||||
}
|
}
|
||||||
sx={{
|
sx={{
|
||||||
borderRadius: theme.gap.xs,
|
borderRadius: "3px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
@@ -86,7 +96,7 @@ const BarChart = ({ checks = [] }) => {
|
|||||||
: theme.label.down.dotColor
|
: theme.label.down.dotColor
|
||||||
}
|
}
|
||||||
sx={{
|
sx={{
|
||||||
borderRadius: theme.gap.xs,
|
borderRadius: "3px",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in new issue
Block a user