style : linear progress improvements
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
|||||||
LinearProgress,
|
LinearProgress,
|
||||||
LinearProgressProps,
|
LinearProgressProps,
|
||||||
Typography,
|
Typography,
|
||||||
|
linearProgressClasses,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
|
|
||||||
const LinearProgressBar = (
|
const LinearProgressBar = (
|
||||||
@@ -19,12 +20,30 @@ const LinearProgressBar = (
|
|||||||
item
|
item
|
||||||
container
|
container
|
||||||
xs={12}
|
xs={12}
|
||||||
|
width="90%"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
wrap="nowrap"
|
wrap="nowrap"
|
||||||
>
|
>
|
||||||
<Grid item sx={{ width: "100%", mr: 2 }}>
|
<Grid item sx={{ width: "100%", mr: 2 }}>
|
||||||
<LinearProgress variant="determinate" {...props} />
|
<LinearProgress
|
||||||
|
variant="determinate"
|
||||||
|
{...props}
|
||||||
|
sx={(theme) => ({
|
||||||
|
borderRadius: "5px",
|
||||||
|
height: "5px",
|
||||||
|
[`&.${linearProgressClasses.colorPrimary}`]: {
|
||||||
|
backgroundColor:
|
||||||
|
theme.palette.grey[
|
||||||
|
theme.palette.mode === "light" ? 200 : 700
|
||||||
|
],
|
||||||
|
},
|
||||||
|
[`& .${linearProgressClasses.bar}`]: {
|
||||||
|
borderRadius: 5,
|
||||||
|
backgroundColor: "#308fe8",
|
||||||
|
},
|
||||||
|
})}
|
||||||
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item sx={{ minWidth: 35 }}>
|
<Grid item sx={{ minWidth: 35 }}>
|
||||||
<Typography variant="body2" color="text.secondary">{`${Math.round(
|
<Typography variant="body2" color="text.secondary">{`${Math.round(
|
||||||
|
|||||||
Reference in New Issue
Block a user