Skip to content

Commit 8530c79

Browse files
committed
Add styles for list items
1 parent 610011e commit 8530c79

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

library/Kubernetes/Common/BaseItemList.php

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ protected function assemble(): void
7272
$itemClass = $this->getItemClass();
7373

7474
$this->addAttributes($this->baseAttributes);
75+
$this->addAttributes(['class' => $this->viewMode]);
7576
foreach ($this->query as $item) {
7677
if (! $detailUrlAdded) {
7778
$this->addAttributes(['class' => 'action-list'] + [

public/css/lists.less

+13-2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ footer {
7171
.title {
7272
.text-ellipsis();
7373

74+
height: 1.5em;
75+
7476
> .subject + .subject {
7577
margin-left: .2em;
7678
}
@@ -80,9 +82,18 @@ footer {
8082
}
8183
}
8284

85+
.item-list.minimal .visual {
86+
width: 2.2em;
87+
}
88+
8389
.visual {
84-
font-size: 1.5em;
85-
justify-content: flex-start;
90+
> .state-ball {
91+
font-size: 1.5em;
92+
}
93+
94+
// Calculate the padding so that the icon is vertically centered in the minimal view,
95+
// but has the same top padding in all other views.
96+
padding: ~"calc((30px - (12px * 0.75 * 1.5)) / 2)" 0;
8697
}
8798

8899
.config-map-list,

0 commit comments

Comments
 (0)