Merge pull request #2555 from shanikauwu1/fixed-alighment-issue-on-pagespeed-page-piechart

Fixed alighment issue on pagespeed page piechart
This commit is contained in:
Alexander Holliday
2025-06-27 08:53:48 +08:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -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={[

View File

@@ -26,6 +26,9 @@ const PerformanceReport = ({ shouldRender, audits }) => {
<Typography
variant="body1"
mt="auto"
sx={{
textAlign: "center",
}}
>
{t("pageSpeedDetailsPerformanceReport")}{" "}
<Typography