Skip to content

Commit f5c8fc9

Browse files
committed
Add minimal layout for the welcome page
1 parent b6958b1 commit f5c8fc9

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

application/forms/Dashboard/SetupNewDashboardForm.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class SetupNewDashboardForm extends BaseDashboardForm
3434
protected function init()
3535
{
3636
parent::init();
37-
37+
3838
$this->moduleDashlets = Modules\DashletManager::getDashlets();
3939

4040
$this->setRedirectUrl((string) Url::fromPath(Dashboard::BASE_ROUTE));
@@ -291,8 +291,8 @@ protected function createFormListControls(string $title = null): ValidHtml
291291
}
292292

293293
$details = HtmlElement::create('details', [
294-
'class' => ['dashboard-list-control', 'collapsible'],
295-
'data-no-persistence' => true
294+
'class' => ['dashboard-list-control', 'collapsible'],
295+
'data-no-persistence' => true
296296
]);
297297
$summary = HtmlElement::create('summary', ['class' => 'collapsible-header']);
298298
$summary->addHtml(

public/css/icinga/dashboards.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@
4949
}
5050
}
5151

52+
// Minimal welcome page layout
53+
54+
#layout.minimal-layout .dashboard-introduction {
55+
top: 50%;
56+
width: 100%;
57+
58+
form {
59+
display: block;
60+
padding-right: 1em;
61+
padding-left: 1em;
62+
}
63+
}
64+
5265
// Sortable dashboard styles
5366

5467
.dashboard-settings {

public/css/icinga/forms.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ form.inline {
8888
}
8989
}
9090

91-
#layout.minimal-layout .icinga-form {
92-
.form-controls {
91+
#layout.minimal-layout {
92+
.icinga-form .form-controls,
93+
form.icinga-controls {
9394
input[type="submit"],
9495
button {
9596
width: 100%;

0 commit comments

Comments
 (0)