From 0997e9cf8682bd119ed1ddb97257f63c6a548891 Mon Sep 17 00:00:00 2001 From: GuillaumeSD Date: Sat, 9 Mar 2024 03:05:48 +0100 Subject: [PATCH] style : linear progress improvements --- src/components/LinearProgressBar.tsx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/LinearProgressBar.tsx b/src/components/LinearProgressBar.tsx index 002aa8a..ca0132f 100644 --- a/src/components/LinearProgressBar.tsx +++ b/src/components/LinearProgressBar.tsx @@ -3,6 +3,7 @@ import { LinearProgress, LinearProgressProps, Typography, + linearProgressClasses, } from "@mui/material"; const LinearProgressBar = ( @@ -19,12 +20,30 @@ const LinearProgressBar = ( item container xs={12} + width="90%" alignItems="center" justifyContent="center" wrap="nowrap" > - + ({ + borderRadius: "5px", + height: "5px", + [`&.${linearProgressClasses.colorPrimary}`]: { + backgroundColor: + theme.palette.grey[ + theme.palette.mode === "light" ? 200 : 700 + ], + }, + [`& .${linearProgressClasses.bar}`]: { + borderRadius: 5, + backgroundColor: "#308fe8", + }, + })} + /> {`${Math.round(