diff --git a/src/App.tsx b/src/App.tsx
index 2c8298a..b274c01 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -213,7 +213,7 @@ export default function App() {
- setPanelOpen(false)} />
+ setPanelOpen(false)} className="w-full flex-1 min-h-0" />
>
)}
diff --git a/src/components/StatsPanel.tsx b/src/components/StatsPanel.tsx
index ce808fc..37d50fc 100644
--- a/src/components/StatsPanel.tsx
+++ b/src/components/StatsPanel.tsx
@@ -7,6 +7,7 @@ interface StatsPanelProps {
loading: boolean;
periodDays: number;
source: 'live' | 'mock';
+ className?: string;
currentUD: number;
animationLabel?: string;
viewMode?: 'heatmap' | 'flow';
@@ -59,7 +60,7 @@ function CityRow({ city, volume, count, countryCode, accent }: {
);
}
-export function StatsPanel({ stats, loading, periodDays, source, currentUD, animationLabel, viewMode = 'heatmap', flowStats, focusCity, onClose }: StatsPanelProps) {
+export function StatsPanel({ stats, loading, periodDays, source, currentUD, animationLabel, viewMode = 'heatmap', flowStats, focusCity, onClose, className }: StatsPanelProps) {
const periodLabel = periodDays === 1 ? '24 dernières heures' : `${periodDays} derniers jours`;
const prevStats = useRef(null);
@@ -83,7 +84,7 @@ export function StatsPanel({ stats, loading, periodDays, source, currentUD, anim
if (stats && !loading) prevStats.current = stats;
return (
-