diff --git a/frontend/src/pages/dashboard/layout.ts b/frontend/src/pages/dashboard/layout.ts index e053fbc..daf22ba 100644 --- a/frontend/src/pages/dashboard/layout.ts +++ b/frontend/src/pages/dashboard/layout.ts @@ -38,18 +38,20 @@ export interface RasterPosition { } // Freie Grid-Positionen als Startzustand - grob nach Wichtigkeit sortiert, -// Aufgaben-Kachel volle Breite oben. +// Aufgaben-Kachel volle Breite oben. 3 gleich breite Spalten (je 8/24) statt +// vorheriger 16+8/12-Restzeile - passt auf 16:9-Monitoren ohne Scrollen +// (Nutzer-Feedback: vorheriges Raster brauchte 23 Zeilen, jetzt 15). export const STANDARD_RASTER: Record = { aufgaben: { x: 0, y: 0, w: 24, h: 3 }, - einsatzbereitschaft: { x: 0, y: 3, w: 8, h: 5 }, - prueftermine: { x: 8, y: 3, w: 8, h: 5 }, - ablaufdaten: { x: 16, y: 3, w: 8, h: 5 }, - kennzahlen: { x: 0, y: 8, w: 8, h: 5 }, - maengel: { x: 8, y: 8, w: 8, h: 5 }, - qualifikation: { x: 16, y: 8, w: 8, h: 4 }, - aktivitaet: { x: 0, y: 13, w: 16, h: 5 }, - readinessVerlauf: { x: 16, y: 13, w: 8, h: 5 }, - faelligeWartungen: { x: 0, y: 18, w: 12, h: 5 }, + einsatzbereitschaft: { x: 0, y: 3, w: 8, h: 4 }, + prueftermine: { x: 8, y: 3, w: 8, h: 4 }, + ablaufdaten: { x: 16, y: 3, w: 8, h: 4 }, + kennzahlen: { x: 0, y: 7, w: 8, h: 4 }, + maengel: { x: 8, y: 7, w: 8, h: 4 }, + qualifikation: { x: 16, y: 7, w: 8, h: 4 }, + aktivitaet: { x: 0, y: 11, w: 8, h: 4 }, + readinessVerlauf: { x: 8, y: 11, w: 8, h: 4 }, + faelligeWartungen: { x: 16, y: 11, w: 8, h: 4 }, }; export interface DashboardLayout { @@ -57,7 +59,7 @@ export interface DashboardLayout { ausgeblendet: DashboardTileId[]; } -const SPEICHER_KEY = "mabea-dashboard-layout-v3"; +const SPEICHER_KEY = "mabea-dashboard-layout-v4"; function istGueltigeId(wert: unknown): wert is DashboardTileId { return typeof wert === "string" && (ALLE_TILE_IDS as string[]).includes(wert);