feat(site): display tooltip in bars for app usage chart (#13854)

This commit is contained in:
Bruno Quaresma
2024-07-09 14:02:45 -03:00
committed by GitHub
parent 6bf7e5af91
commit 879c61ce23
2 changed files with 22 additions and 13 deletions
@@ -480,19 +480,25 @@ const TemplateUsagePanel: FC<TemplateUsagePanelProps> = ({
{usage.display_name}
</div>
</div>
<LinearProgress
value={percentage}
variant="determinate"
css={{
width: "100%",
height: 8,
backgroundColor: theme.palette.divider,
"& .MuiLinearProgress-bar": {
backgroundColor: usageColors[i],
borderRadius: 999,
},
}}
/>
<Tooltip
title={`${Math.floor(percentage)}%`}
placement="top"
arrow
>
<LinearProgress
value={percentage}
variant="determinate"
css={{
width: "100%",
height: 8,
backgroundColor: theme.palette.divider,
"& .MuiLinearProgress-bar": {
backgroundColor: usageColors[i],
borderRadius: 999,
},
}}
/>
</Tooltip>
<Stack
spacing={0}
css={{
+3
View File
@@ -455,6 +455,9 @@ export const components = {
background: theme.palette.divider,
padding: "8px 16px",
}),
arrow: ({ theme }) => ({
color: theme.palette.divider,
}),
},
},
MuiAlert: {