From 4875096b134ba948ea1a2fb0a1ef5e88406297aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Thu, 9 Apr 2026 20:19:24 +0200 Subject: [PATCH] fix(dashboard): restore vertical compaction so widgets auto-align when dragged --- apps/web/src/components/dashboard/DashboardClient.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/dashboard/DashboardClient.tsx b/apps/web/src/components/dashboard/DashboardClient.tsx index e3a947b..38e8a0a 100644 --- a/apps/web/src/components/dashboard/DashboardClient.tsx +++ b/apps/web/src/components/dashboard/DashboardClient.tsx @@ -1,7 +1,7 @@ "use client"; import type { DashboardWidgetConfig, DashboardWidgetType } from "@capakraken/shared/types"; -import { noCompactor } from "react-grid-layout"; +import { verticalCompactor } from "react-grid-layout"; import dynamic from "next/dynamic"; import { Suspense, useState, useRef, useEffect, useMemo } from "react"; import { useDashboardLayout } from "~/hooks/useDashboardLayout.js"; @@ -313,7 +313,7 @@ export function DashboardClient() { breakpoints={{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }} cols={{ lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 }} rowHeight={80} - compactor={noCompactor} + compactor={verticalCompactor} onLayoutChange={( _: unknown, allLayouts: Record<