Skip to content

Commit facc616

Browse files
WIP
1 parent 442d01b commit facc616

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/Notifications/Widget/TimeGrid/BaseGrid.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ final protected function yieldFixedEntries(Traversable $entries): Generator
427427
}
428428

429429
if ($entry instanceof FutureEntry) {
430-
$colStart = ($this->getNoOfVisuallyConnectedHours() / 24 + 1) * - 1;
430+
// (no. of days * - 2) - 1, example: 7 days (week) = -15
431+
$colStart = (($this->getNoOfVisuallyConnectedHours() / 24) * - 2) - 1;
431432
$colEnd = $gridBorderAt;
432433
} else {
433434
$actualStart = Util::roundToNearestThirtyMinute($entry->getStart());

0 commit comments

Comments
 (0)