Skip to content

Commit

Permalink
fix(view): storage chart overflow on multiview with >3 disks
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceNino committed Jul 1, 2022
1 parent 4055644 commit 64d2b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/view/src/components/chart-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ export const DefaultVertBarChart: FC<DefaultVertBarChartProps> = ({
children,
tooltipRenderer,
}) => {
const barSize = Math.min(height / data.length - 10, 60);
const gap = (data.length - 1) * 30;
const barSize = Math.min(Math.max(height / data.length - 20, 20), 50);
const gap = (data.length - 1) * 10;
const allBars = barSize * data.length;
const margin = (height - gap - allBars) / 2;

Expand Down

0 comments on commit 64d2b82

Please sign in to comment.