+ {/* Bottom-right: legend (hidden on mobile to avoid overlap) */}
+
+ {/* 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 (