diff --git a/src/pages/ReferralNetwork/ReferralNetwork.tsx b/src/pages/ReferralNetwork/ReferralNetwork.tsx index 4356e38..e5b3b2a 100644 --- a/src/pages/ReferralNetwork/ReferralNetwork.tsx +++ b/src/pages/ReferralNetwork/ReferralNetwork.tsx @@ -31,7 +31,7 @@ export function ReferralNetwork() { return (
{/* Top bar */}
@@ -86,13 +86,13 @@ export function ReferralNetwork() {
- {/* Bottom-right: legend */} -
+ {/* Bottom-right: legend (hidden on mobile to avoid overlap) */} +
- {/* Bottom-center: controls */} -
+ {/* Bottom-right on mobile, bottom-center on desktop: controls */} +
diff --git a/src/pages/ReferralNetwork/components/NetworkGraph.tsx b/src/pages/ReferralNetwork/components/NetworkGraph.tsx index 5fa5bfe..f00bb0f 100644 --- a/src/pages/ReferralNetwork/components/NetworkGraph.tsx +++ b/src/pages/ReferralNetwork/components/NetworkGraph.tsx @@ -236,9 +236,10 @@ export function NetworkGraph({ data, className }: NetworkGraphProps) { if (graph.order > 0) { const supervisor = new FA2LayoutSupervisor(graph, { settings: { - gravity: 1, - scalingRatio: 2, + gravity: 0.5, + scalingRatio: 10, barnesHutOptimize: true, + slowDown: 2, }, }); fa2Ref.current = supervisor; diff --git a/src/pages/ReferralNetwork/components/NetworkStats.tsx b/src/pages/ReferralNetwork/components/NetworkStats.tsx index a7303e0..e715bd2 100644 --- a/src/pages/ReferralNetwork/components/NetworkStats.tsx +++ b/src/pages/ReferralNetwork/components/NetworkStats.tsx @@ -31,9 +31,9 @@ export function NetworkStats({ data, className }: NetworkStatsProps) { return (
-
+
{stats.map((stat) => (