diff --git a/web/src/Components/Bridging/Graphs/BridgeGraph.tsx b/web/src/Components/Bridging/Graphs/BridgeGraph.tsx index 92ffc05..a2ac51b 100644 --- a/web/src/Components/Bridging/Graphs/BridgeGraph.tsx +++ b/web/src/Components/Bridging/Graphs/BridgeGraph.tsx @@ -34,11 +34,12 @@ export function BridgeGraph({ title, graphData, sizeFractions, bridges, showBrid let percentage = (index / sizeFractions.length) * 100 return `${percentage}%` } + const legendHeight = Math.max(Math.round(Object.entries(bridges).length / 3) * 20, 30) + if (!showBridge) { const { Bridge, ...withoutBridge } = bridges bridges = withoutBridge } - return (