Terminplan nutzt die ganze Bildschirmbreite (0.25.1)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-22 05:59:24 +00:00
parent 16ae77318e
commit 2dcc7588e9
4 changed files with 7 additions and 2 deletions

View File

@@ -243,7 +243,7 @@ export async function terminplanSeite(h: Hilfen, vorhanden?: Plan): Promise<void
let von = montagDerWoche(plusTage([...sichtbar.map((v) => v.anfang as Datum), ...postenDaten].reduce((m, d) => (d < m ? d : m), heute), -7));
let bis = plusTage([...sichtbar.map((v) => v.ende as Datum), ...postenDaten].reduce((m, d) => (d > m ? d : m), plusTage(heute, 30)), 21);
// die Zeitskala füllt auch weit herausgezoomt die Breite
const minTage = Math.ceil(1600 / W);
const minTage = Math.ceil(Math.max(1600, window.innerWidth) / W);
if (tageZwischen(von, bis) + 1 < minTage) bis = plusTage(von, minTage - 1);
const tage = tageZwischen(von, bis) + 1;
const x = (d: Datum) => tageZwischen(von, d) * W;