File tree 3 files changed +16
-18
lines changed
library/Notifications/Widget
3 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ final protected function yieldFixedEntries(Traversable $entries): Generator
429
429
if ($ entry instanceof FutureEntry) {
430
430
// (no. of days * - 2) - 1, example: 7 days (week) = -15
431
431
$ colStart = (($ this ->getNoOfVisuallyConnectedHours () / 24 ) * - 2 ) - 1 ;
432
- $ colStart = ($ this ->getNoOfVisuallyConnectedHours () / 24 + 1 ) * - 1 ;
432
+ // $colStart = ($this->getNoOfVisuallyConnectedHours() / 24 + 1) * - 1;
433
433
$ colEnd = $ gridBorderAt ;
434
434
} else {
435
435
$ actualStart = Util::roundToNearestThirtyMinute ($ entry ->getStart ());
Original file line number Diff line number Diff line change @@ -19,19 +19,15 @@ public function getColor(int $transparency): string
19
19
20
20
protected function assembleContainer (BaseHtmlElement $ container ): void
21
21
{
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 (
33
26
'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
+ ]),
35
31
new Icon ('angle-right ' )
36
32
)
37
33
);
Original file line number Diff line number Diff line change 59
59
}
60
60
}
61
61
62
- & .future-rotation-container {
62
+ & .future {
63
63
display : flex ;
64
64
justify-content : end ;
65
+ // overflow: visible;
65
66
66
- .future {
67
+ .badgeX {
67
68
display : flex ;
68
69
align-items : center ;
69
70
justify-content : center ;
70
71
71
72
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
73
74
74
75
width : 2em ;
76
+ flex-shrink : 0 ;
75
77
76
78
& :before ,
77
79
& :after {
82
84
border-right : transparent ;
83
85
height : ~ " calc(100% + 2px)" ; // border top and bottom
84
86
width : 100% ;
85
- left : 2 px ;
87
+ left : 4 px ; // 1px border + 3px distance
86
88
.rounded-corners (0.25em );
87
89
}
88
90
89
91
& :after {
90
- left : 5 px ; // 2px before + 1px border + 2px after
92
+ left : 7 px ; // 4px before + 1px border + 2px after
91
93
}
92
94
}
93
95
}
You can’t perform that action at this time.
0 commit comments