From c5326e5d6a19777b38792c2b35af4f348b636ab0 Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Tue, 4 Mar 2025 15:53:40 +0530 Subject: [PATCH] Added a constant and utilised a responsive-values in MUI. --- src/Components/Charts/StatusPageBarChart/index.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Components/Charts/StatusPageBarChart/index.jsx b/src/Components/Charts/StatusPageBarChart/index.jsx index 29a52b053..e912934a0 100644 --- a/src/Components/Charts/StatusPageBarChart/index.jsx +++ b/src/Components/Charts/StatusPageBarChart/index.jsx @@ -49,6 +49,11 @@ const StatusPageBarChart = ({ checks = [] }) => { const [animate, setAnimate] = useState(false); const uiTimezone = useSelector((state) => state.ui.timezone); + const barWidth = { + xs: "calc(60% / 25)", + xl: "calc(40% / 25)", + }; + useEffect(() => { setAnimate(true); }, []); @@ -82,7 +87,7 @@ const StatusPageBarChart = ({ checks = [] }) => { // even if there are less than 25 checks @@ -176,7 +181,7 @@ const StatusPageBarChart = ({ checks = [] }) => { }} >