Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix header shadow #122

Merged
merged 3 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions application/controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class DashboardController extends Controller
public function indexAction(): void
{
$this->addTitleTab($this->translate('Kubernetes'));
$this->controls->addAttributes(['class' => 'no-shadow']);

$cluster = (new ClusterForm())
->addAttributes(new Attributes(['class' => 'cluster-form']))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ClusterManagementDashboard extends Dashboard
{
public function getTitle(): string
{
return $this->translate('Cluster management');
return $this->translate('Cluster Management');
}

protected function assemble(): void
Expand Down
8 changes: 8 additions & 0 deletions public/css/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ pre {
}

.controls {

&:not(.no-shadow) {
// Copied from Icinga DB Web
-moz-box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
-webkit-box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
box-shadow: 0 0 0 1px var(--gray-lighter, #4b4b4b);
}

a.subject {
cursor: default;
pointer-events: none;
Expand Down