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:
2 files changed
+12
-1
No files matched your search
@@ -221,7 +221,15 @@ const PieChart = ({ audits }) => {
|
|||||||
const colorMap = getColors(performance);
|
const colorMap = getColors(performance);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box onMouseLeave={() => setExpand(false)}>
|
<Box
|
||||||
|
onMouseLeave={() => setExpand(false)}
|
||||||
|
sx={{
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "center",
|
||||||
|
alignItems: "center",
|
||||||
|
width: "100%",
|
||||||
|
}}
|
||||||
|
>
|
||||||
{expand ? (
|
{expand ? (
|
||||||
<MuiPieChart
|
<MuiPieChart
|
||||||
series={[
|
series={[
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ const PerformanceReport = ({ shouldRender, audits }) => {
|
|||||||
<Typography
|
<Typography
|
||||||
variant="body1"
|
variant="body1"
|
||||||
mt="auto"
|
mt="auto"
|
||||||
|
sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t("pageSpeedDetailsPerformanceReport")}{" "}
|
{t("pageSpeedDetailsPerformanceReport")}{" "}
|
||||||
<Typography
|
<Typography
|
||||||
|
|||||||
Reference in new issue
Block a user