diff --git a/frontend/src/pages/DashboardPage.jsx b/frontend/src/pages/DashboardPage.jsx index 3347d77..451c52c 100644 --- a/frontend/src/pages/DashboardPage.jsx +++ b/frontend/src/pages/DashboardPage.jsx @@ -45,7 +45,7 @@ const STAT_DEFS = { // Full widget registry: size defaults + palette label. Stats inherit from STAT_DEFS. const WIDGETS = { - ...Object.fromEntries(Object.entries(STAT_DEFS).map(([id, d]) => [id, { label: d.label, w: 2, h: 1, minW: 2, minH: 1 }])), + ...Object.fromEntries(Object.entries(STAT_DEFS).map(([id, d]) => [id, { label: d.label, w: 2, h: 1, minW: 1, minH: 1 }])), weekly: { label: 'Weekly distance', w: 6, h: 3, minW: 4, minH: 2 }, bodyBattery: { label: 'Body Battery', w: 4, h: 3, minW: 3, minH: 2 }, vo2maxTrend: { label: 'VO₂ max trend', w: 3, h: 3, minW: 2, minH: 2 }, @@ -629,8 +629,7 @@ export default function DashboardPage() { isDraggable={editMode} isResizable={editMode} onLayoutChange={handleLayoutChange} - compactType={null} - preventCollision + compactType="vertical" draggableCancel=".widget-delete" > {layout.filter(l => WIDGETS[l.i]).map(l => (