From b03ffb5d108c65e0dce3a3973a89098bdd9b851f Mon Sep 17 00:00:00 2001 From: Schalli Date: Wed, 23 Sep 2026 15:40:26 +0200 Subject: [PATCH] fix(dashboard): Favoriten-Kachel bis auf eine Spalte schmal ziehbar Bei kurzen Linknamen blieb rechts viel Leerraum; minW 3 -> 1. Der Titel kuerzt mit Auslassungszeichen, das Symbol bleibt stehen. Co-Authored-By: Claude Opus 5.5 (1M context) --- apps/web/src/components/dashboard/widget-registry.test.tsx | 2 +- apps/web/src/components/dashboard/widget-registry.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/dashboard/widget-registry.test.tsx b/apps/web/src/components/dashboard/widget-registry.test.tsx index 90c2a52..62b6053 100644 --- a/apps/web/src/components/dashboard/widget-registry.test.tsx +++ b/apps/web/src/components/dashboard/widget-registry.test.tsx @@ -75,7 +75,7 @@ describe('WIDGET_CONSTRAINTS (DASH-11)', () => { calendar: { minW: 6, minH: 8, defaultW: 8, defaultH: 12 }, note: { minW: 4, minH: 4, defaultW: 6, defaultH: 8 }, calculator: { minW: 3, minH: 10, defaultW: 6, defaultH: 10 }, - favorites: { minW: 3, minH: 3, defaultW: 6, defaultH: 10 }, + favorites: { minW: 1, minH: 3, defaultW: 6, defaultH: 10 }, stopwatch: { minW: 4, minH: 3, defaultW: 6, defaultH: 6 }, 'picture-frame': { minW: 4, minH: 4, defaultW: 8, defaultH: 12 }, xframe: { minW: 4, minH: 4, defaultW: 12, defaultH: 12 }, diff --git a/apps/web/src/components/dashboard/widget-registry.tsx b/apps/web/src/components/dashboard/widget-registry.tsx index bae9866..caacebe 100644 --- a/apps/web/src/components/dashboard/widget-registry.tsx +++ b/apps/web/src/components/dashboard/widget-registry.tsx @@ -56,7 +56,10 @@ export const WIDGET_CONSTRAINTS: Record< // SECHS Tastenreihen (%/CE/C/Loeschen, 1/x/x2/Wurzel/Division, 7-9, 4-6, 1-3, 0/Komma/=), // Inhalt 268 px; bei 9 Zeilen (244 px) fehlte die unterste Reihe um 25 px. calculator: { minW: 3, minH: 10, defaultW: 6, defaultH: 10 }, - favorites: { minW: 3, minH: 3, defaultW: 6, defaultH: 10 }, + // Favoriten: minW 1 statt 3 (Nutzerwunsch 23.09.) — bei kurzen Linknamen + // blieb rechts viel Leerraum. Der Titel kuerzt mit Auslassungszeichen, + // in der schmalsten Stufe bleibt das Symbol als Leiste stehen. + favorites: { minW: 1, minH: 3, defaultW: 6, defaultH: 10 }, stopwatch: { minW: 4, minH: 3, defaultW: 6, defaultH: 6 }, // quick-260921-pi9: ein Bild braucht Flaeche — 8x12 entspricht der // Kalender-Vorgabe (rund 530x330 px, Querformat wie ein Foto); 8x8 war im