Skip to content

Commit 7c984c9

Browse files
Fix add button margin
1 parent 4666368 commit 7c984c9

4 files changed

Lines changed: 2 additions & 10 deletions

File tree

application/controllers/EventRulesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function indexAction(): void
9090
Url::fromPath('notifications/event-rule/edit', ['id' => -1, 'clearCache' => true]),
9191
'plus'
9292
))->openInModal()
93-
->addAttributes(['class' => 'new-event-rule'])
93+
->addAttributes(['class' => 'add-new-component'])
9494
);
9595

9696
$this->addContent(

application/controllers/SchedulesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function indexAction(): void
7575
Links::scheduleAdd(),
7676
'plus',
7777
[
78-
'class' => 'add-schedule-control'
78+
'class' => 'add-new-component'
7979
]
8080
))->openInModal()
8181
);

public/css/detail/event-rule-detail.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@
358358
width: 14.5em;
359359
}
360360

361-
.new-event-rule {
362-
margin-bottom: 1em;
363-
}
364-
365361
.event-rule-and-save-forms {
366362
display: flex;
367363
flex-wrap: wrap;

public/css/schedule.less

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
/* Layout */
22

3-
.add-schedule-control {
4-
margin-bottom: 1em;
5-
}
6-
73
.schedule-detail-controls {
84
.box-shadow(0, 0, 0, 1px, @gray-lighter);
95
z-index: 2; // The content may clip, this ensures the separator and dropdown is always visible

0 commit comments

Comments
 (0)