Skip to content

Commit ff39b69

Browse files
committed
Fix TimezonePicker css classes
1 parent b62d1b2 commit ff39b69

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

library/Notifications/Web/Control/TimezonePicker.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Icinga\Web\Session;
1010
use IntlTimeZone;
1111
use ipl\Html\Form;
12-
use ipl\Html\HtmlElement;
1312
use ipl\I18n\Translation;
1413
use ipl\Web\Common\FormUid;
1514
use Throwable;
@@ -25,7 +24,10 @@ class TimezonePicker extends Form
2524
/** @var string Default timezone param */
2625
public const DEFAULT_TIMEZONE_PARAM = 'display_timezone';
2726

28-
protected $defaultAttributes = ['class' => 'timezone-picker', 'name' => 'timezone-picker-form'];
27+
protected $defaultAttributes = [
28+
'class' => 'timezone-picker icinga-form inline icinga-controls',
29+
'name' => 'timezone-picker-form'
30+
];
2931

3032
protected string $defaultTimezone;
3133

@@ -82,7 +84,6 @@ public function assemble(): void
8284
]
8385
);
8486
$select = $this->getElement(static::DEFAULT_TIMEZONE_PARAM);
85-
$select->prependWrapper(HtmlElement::create('div', ['class' => 'icinga-controls']));
8687
$select->setValue($this->getDisplayTimezone());
8788
}
8889
}

public/css/form.less

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@
8484
}
8585
}
8686

87-
.timezone-picker {
88-
display: inline;
89-
margin-left: 1em;
90-
91-
.icinga-controls {
92-
display: inline;
93-
}
94-
}
95-
9687
/* Style */
9788

9889
.icinga-controls {

public/css/schedule.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
}
2222
}
2323
}
24+
25+
.timezone-picker {
26+
margin-left: 1em;
27+
}
2428
}
2529

2630
.schedule-detail {

0 commit comments

Comments
 (0)