Skip to content

Commit 36d56ec

Browse files
committed
fix(project-stats): fix text wrap and spacing of chart tooltip
1 parent 96dbf9e commit 36d56ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

features/ProjectStats/UsageChart.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ export const UsageChart = ({ chartData, unitCost }: UsageChartProps) => {
4646
columnGap={4}
4747
display="grid"
4848
gridTemplateColumns="repeat(5, auto)"
49-
rowGap={4}
49+
rowGap={1}
5050
>
5151
{chartData.map((item) => {
5252
return (
5353
<Fragment key={item.type}>
54+
{/* Colour icon box */}
5455
<Box
5556
bgcolor={item.color}
5657
border={1}
@@ -68,7 +69,7 @@ export const UsageChart = ({ chartData, unitCost }: UsageChartProps) => {
6869
<Typography component="span" variant="body2">
6970
/
7071
</Typography>
71-
<Typography component="span" sx={{ justifySelf: "end" }} variant="body2">
72+
<Typography noWrap component="span" sx={{ justifySelf: "end" }} variant="body2">
7273
{((item.value / valuesSummed) * 100).toFixed(2)} %
7374
</Typography>
7475
</Fragment>

0 commit comments

Comments
 (0)