Skip to content

Commit ed4a393

Browse files
again
1 parent bb84ccf commit ed4a393

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

library/Notifications/Widget/TimeGrid/BaseGrid.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ final protected function yieldFixedEntries(Traversable $entries): Generator
429429
if ($entry instanceof FutureEntry) {
430430
// (no. of days * - 2) - 1, example: 7 days (week) = -15
431431
$colStart = (($this->getNoOfVisuallyConnectedHours() / 24) * - 2) - 1;
432-
$colStart = ($this->getNoOfVisuallyConnectedHours() / 24 + 1) * - 1;
432+
//$colStart = ($this->getNoOfVisuallyConnectedHours() / 24 + 1) * - 1;
433433
$colEnd = $gridBorderAt;
434434
} else {
435435
$actualStart = Util::roundToNearestThirtyMinute($entry->getStart());

library/Notifications/Widget/Timeline/FutureEntry.php

+8-12
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,15 @@ public function getColor(int $transparency): string
1919

2020
protected function assembleContainer(BaseHtmlElement $container): void
2121
{
22-
/*$this
23-
->addHtml(new Icon('angle-right'))
24-
->addAttributes(new Attributes([
25-
'class' => 'future',
26-
'title' => $this->translate('rotation starts in the future')
27-
]));*/
28-
29-
$this->addAttributes(new Attributes(['class' => 'future-rotation-container']));
30-
31-
$container->addHtml(
32-
new HtmlElement(
22+
$container
23+
->addAttributes(new Attributes(['class' => 'future']))
24+
->addHtml(
25+
new HtmlElement(
3326
'div',
34-
Attributes::create(['class' => 'future', 'title' => $this->translate('rotation starts in the future')]),
27+
Attributes::create([
28+
'class' => 'badgeX',
29+
'title' => $this->translate('rotation starts in the future')
30+
]),
3531
new Icon('angle-right')
3632
)
3733
);

public/css/timeline.less

+7-5
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,21 @@
5959
}
6060
}
6161

62-
&.future-rotation-container {
62+
&.future {
6363
display: flex;
6464
justify-content: end;
65+
// overflow: visible;
6566

66-
.future {
67+
.badgeX {
6768
display: flex;
6869
align-items: center;
6970
justify-content: center;
7071

7172
position: relative;
72-
padding-left: 6px; // 2px before + 1px border + 2px after + 1px border
73+
padding-left: 6px; // 4px before + 1px border + 2px after + 1px border
7374

7475
width: 2em;
76+
flex-shrink: 0;
7577

7678
&:before,
7779
&:after {
@@ -82,12 +84,12 @@
8284
border-right: transparent;
8385
height: ~"calc(100% + 2px)"; // border top and bottom
8486
width: 100%;
85-
left: 2px;
87+
left: 4px; // 1px border + 3px distance
8688
.rounded-corners(0.25em);
8789
}
8890

8991
&:after {
90-
left: 5px; // 2px before + 1px border + 2px after
92+
left: 7px; // 4px before + 1px border + 2px after
9193
}
9294
}
9395
}

0 commit comments

Comments
 (0)