Fix PageSpeed performance report alignment - Center pie chart and text

This commit is contained in:
shanika Jayawardane committed 2025-06-25 23:19:29 -06:00
1 parent 6ec6d582d8
commit c5870b96d5
2 files changed
+12 -1

No files matched your search

@@ -221,7 +221,15 @@ const PieChart = ({ audits }) => {
const colorMap = getColors(performance);
return (
<Box onMouseLeave={() => setExpand(false)}>
<Box
onMouseLeave={() => setExpand(false)}
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center",
width: "100%",
}}
>
{expand ? (
<MuiPieChart
series={[
@@ -26,6 +26,9 @@ const PerformanceReport = ({ shouldRender, audits }) => {
<Typography
variant="body1"
mt="auto"
sx={{
textAlign: "center",
}}
>
{t("pageSpeedDetailsPerformanceReport")}{" "}
<Typography