Terminplan nutzt die ganze Bildschirmbreite (0.25.1)
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user