Skip to content

Commit 1b9622a

Browse files
authored
Merge pull request #122 from Icinga/fix-header-shadow
Fix header shadow
2 parents 5089bfb + b872683 commit 1b9622a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

application/controllers/DashboardController.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class DashboardController extends Controller
2323
public function indexAction(): void
2424
{
2525
$this->addTitleTab($this->translate('Kubernetes'));
26+
$this->controls->addAttributes(['class' => 'no-shadow']);
2627

2728
$cluster = (new ClusterForm())
2829
->addAttributes(new Attributes(['class' => 'cluster-form']))

library/Kubernetes/Dashboard/ClusterManagementDashboard.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ClusterManagementDashboard extends Dashboard
88
{
99
public function getTitle(): string
1010
{
11-
return $this->translate('Cluster management');
11+
return $this->translate('Cluster Management');
1212
}
1313

1414
protected function assemble(): void

public/css/common.less

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ pre {
2929
}
3030

3131
.controls {
32+
33+
&:not(.no-shadow) {
34+
// Copied from Icinga DB Web
35+
-moz-box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
36+
-webkit-box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
37+
box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
38+
}
39+
3240
a.subject {
3341
cursor: default;
3442
pointer-events: none;

0 commit comments

Comments
 (0)