-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add view mode functionality for RedundancyGroup items
- Loading branch information
1 parent
c869dc3
commit 22603ba
Showing
3 changed files
with
53 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
library/Icingadb/Widget/ItemList/RedundancyGroupListItemMinimal.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/* Icinga DB Web | (c) 2024 Icinga GmbH | GPLv2 */ | ||
|
||
namespace Icinga\Module\Icingadb\Widget\ItemList; | ||
|
||
use Icinga\Module\Icingadb\Common\ListItemMinimalLayout; | ||
use ipl\Web\Widget\StateBall; | ||
|
||
class RedundancyGroupListItemMinimal extends RedundancyGroupListItem | ||
{ | ||
use ListItemMinimalLayout; | ||
|
||
protected function getStateBallSize(): string | ||
{ | ||
return StateBall::SIZE_BIG; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,27 @@ | ||
.redundancy-group-list-item { | ||
.caption { | ||
display: flex; | ||
justify-content: end; | ||
.item-list.detailed, | ||
.item-list.common, | ||
.item-list.minimal { | ||
.list-item.redundancy-group-list-item { | ||
.title > * { | ||
margin: 0 .28125em; // 0 calculated width | ||
|
||
&:first-child { | ||
margin-left: 0; | ||
} | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
} | ||
|
||
.caption .object-statistics { | ||
justify-self: end; | ||
} | ||
} | ||
} | ||
|
||
.item-list.minimal > .list-item.redundancy-group-list-item { | ||
.caption .object-statistics { | ||
font-size: 0.75em; | ||
} | ||
} |