feat: adding scrollbar styling
This commit is contained in:
1 parent
54b9ec79f9
commit
1e44a1ec18
1 file changed
+16
-3
@@ -135,7 +135,19 @@ function Infrastructure() {
|
|||||||
</Stack>
|
</Stack>
|
||||||
<TableContainer
|
<TableContainer
|
||||||
component={Paper}
|
component={Paper}
|
||||||
sx={{ maxHeight: "55vh" }}
|
sx={{
|
||||||
|
maxHeight: "55vh",
|
||||||
|
"&::-webkit-scrollbar": {
|
||||||
|
width: ".75rem",
|
||||||
|
},
|
||||||
|
"&::-webkit-scrollbar-track": {
|
||||||
|
backgroundColor: theme.palette.secondary.light,
|
||||||
|
},
|
||||||
|
"&::-webkit-scrollbar-thumb": {
|
||||||
|
backgroundColor: theme.palette.secondary.contrastText,
|
||||||
|
outline: `1px solid ${theme.palette.secondary.contrastText}`,
|
||||||
|
},
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Table stickyHeader>
|
<Table stickyHeader>
|
||||||
<TableHead sx={{ backgroundColor: theme.palette.background.accent }}>
|
<TableHead sx={{ backgroundColor: theme.palette.background.accent }}>
|
||||||
@@ -144,8 +156,9 @@ function Infrastructure() {
|
|||||||
<TableCell
|
<TableCell
|
||||||
key={index}
|
key={index}
|
||||||
align={index === 0 ? "left" : "center"}
|
align={index === 0 ? "left" : "center"}
|
||||||
/* TODO I don't understand why it was needed to pass this to override some #ffffff color from MUI here, but that wasn't needed in other pages. */
|
sx={{
|
||||||
sx={{ backgroundColor: "transparent" }}
|
backgroundColor: theme.palette.background.accent,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{column.label}
|
{column.label}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|||||||
Reference in new issue
Block a user