Skip to content

Commit 8ed01da

Browse files
move schedule-controls into controls section (#387)
1 parent 4feb29b commit 8ed01da

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

application/controllers/ScheduleController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function indexAction(): void
5555
})
5656
->handleRequest($this->getServerRequest());
5757

58+
$this->addControl($scheduleControls);
5859
$this->addContent(new ScheduleDetail($schedule, $scheduleControls));
5960
}
6061

library/Notifications/Widget/Detail/ScheduleDetail.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ protected function createTimeline(): Timeline
8686

8787
protected function assemble()
8888
{
89-
$this->addHtml(
90-
new HtmlElement('div', Attributes::create(['class' => 'schedule-header']), $this->controls)
91-
);
92-
9389
$timeline = $this->createTimeline();
9490
if (! $this->hasRotation) {
9591
$this->addHtml(new HtmlElement(

public/css/schedule.less

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@
88
h2 {
99
display: inline;
1010
}
11-
}
1211

13-
.schedule-detail {
14-
display: flex;
15-
flex-direction: column;
16-
height: 100%;
17-
18-
.schedule-header {
19-
display: flex;
20-
margin-bottom: 1em;
21-
justify-content: flex-end;
12+
.schedule-controls {
13+
float: right;
2214

2315
.view-mode-switcher {
2416
margin-bottom: 0;
@@ -29,6 +21,12 @@
2921
}
3022
}
3123
}
24+
}
25+
26+
.schedule-detail {
27+
display: flex;
28+
flex-direction: column;
29+
height: 100%;
3230

3331
.from-scratch-hint {
3432
display: flex;

0 commit comments

Comments
 (0)