Fix Current Time Indicator being show too early in a day

This commit is contained in:
Karl Ludwig Weise
2026-06-11 19:48:27 +02:00
parent d3e7fcd289
commit 802ed38d6b
@@ -128,7 +128,8 @@
{/each} {/each}
</div> </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 = {@const top =
focusAdjustment + focusAdjustment +
curTimeIndicator.hour * hourSize + curTimeIndicator.hour * hourSize +