fix cloud log sticky accordion header z-index

This commit is contained in:
Sidney Alcantara
2021-11-12 16:07:26 +11:00
parent 0709c59417
commit 712cb4972f
3 changed files with 4 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ const AccordionSummary = styled(MuiAccordionSummary)(({ theme }) => ({
},
position: "sticky",
zIndex: 2,
zIndex: 1,
top: 0,
".MuiListSubheader-sticky ~ li &": { top: 32 },
},

View File

@@ -68,7 +68,7 @@ const AccordionSummary = styled(MuiAccordionSummary)(({ theme }) => ({
},
position: "sticky",
zIndex: 2,
zIndex: 1,
top: 0,
".MuiListSubheader-sticky ~ li &": { top: 32 },
},

View File

@@ -3,6 +3,8 @@ import { styled, ListSubheader } from "@mui/material";
export const CloudLogSubheader = styled((props) => (
<ListSubheader disableGutters disableSticky={false} {...props} />
))(({ theme }) => ({
zIndex: 2,
"&:not(:first-child)": { marginTop: theme.spacing(2) },
...theme.typography.subtitle2,
padding: theme.spacing((32 - 20) / 2 / 8, 1.5),