Merge pull request #293 from open-reception/fix/current-time-indicator-show-too-early-in-a-day

Fix Current Time Indicator being show too early in a day
This commit is contained in:
Karl Ludwig Weise
2026-06-11 19:56:28 +02:00
committed by GitHub
@@ -128,7 +128,8 @@
{/each}
</div>
{#if curTimeIndicator && toCalendarDate($clock).toString() === today(getLocalTimeZone()).toString() && latestEndHour * hourSize + hourSize / 2 > curTimeIndicator.hour * hourSize}
<!-- Current Time Indicator -->
{#if curTimeIndicator && toCalendarDate($clock).toString() === today(getLocalTimeZone()).toString() && latestEndHour * hourSize + hourSize / 2 > curTimeIndicator.hour * hourSize && earliestStartHour * hourSize - hourSize * 2 < curTimeIndicator.hour * hourSize}
{@const top =
focusAdjustment +
curTimeIndicator.hour * hourSize +