File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace Icinga \Module \Kubernetes \Web ;
6
6
7
+ use Icinga \Module \Kubernetes \Common \BaseItemList ;
8
+ use ipl \Html \ValidHtml ;
7
9
use ipl \Stdlib \Filter ;
8
10
use ipl \Web \Compat \CompatController ;
9
11
use ipl \Web \Filter \QueryString ;
@@ -55,4 +57,20 @@ protected function getFilter(): Filter\Rule
55
57
56
58
return $ this ->filter ;
57
59
}
60
+
61
+ /**
62
+ * Add the full-width class to the content element of BaseItemList instances.
63
+ *
64
+ * @param ValidHtml $content
65
+ *
66
+ * @return Controller
67
+ */
68
+ protected function addContent (ValidHtml $ content )
69
+ {
70
+ if ($ content instanceof BaseItemList) {
71
+ $ this ->content ->getAttributes ()->add ('class ' , 'full-width ' );
72
+ }
73
+
74
+ return parent ::addContent ($ content );
75
+ }
58
76
}
Original file line number Diff line number Diff line change 128
128
}
129
129
}
130
130
131
+ .content.full-width {
132
+ padding-left : 0 ;
133
+ padding-right : 0 ;
134
+
135
+ .item-list .list-item {
136
+ // The .list-item itself can't have padding because of `display:table-row`
137
+ & :before , & :after {
138
+ display : inline-block ;
139
+ content : ' \00a0 ' ;
140
+ width : 1em ;
141
+ }
142
+ }
143
+ }
You can’t perform that action at this time.
0 commit comments