refactor: small fixes and style tweaks

fix: prevent reflow on editing images

fix: schedule overview

fix: report on all events

refactor: over-under time colours

fix: prevent edit on delete
This commit is contained in:
Carlos Valente
2025-07-14 11:45:41 +02:00
committed by Carlos Valente
parent 1e1f547ce1
commit ad2ef3b53f
22 changed files with 135 additions and 141 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export function getOffsetText(offset: MaybeNumber): string {
return offsetText;
}
export function getOffsetState(offset: MaybeNumber): 'ahead' | 'behind' | 'muted' | null {
export function getOffsetState(offset: MaybeNumber): 'over' | 'under' | 'muted' | null {
if (offset === null) return null;
if (offset === 0) return 'muted';
return offset < 0 ? 'behind' : 'ahead';
return offset < 0 ? 'over' : 'under';
}