Skip to content

Commit fdb5224

Browse files
authored
Merge pull request #44 from lfai/revert-42-update-class-names
Revert "Update class names - fix layout"
2 parents a8a4265 + d11c4aa commit fdb5224

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

web/modules/mof/css/layout/model_list.css

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ table .model-updated {
1515
width: 145px;
1616
}
1717

18-
table th.badge {
19-
width: 305px;
20-
}
21-
2218
table td.badge svg {
2319
display: block;
2420
margin: 6px 0;

web/modules/mof/src/ModelListBuilder.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ public function buildHeader(): array {
107107
'specifier' => 'changed',
108108
'class' => ['model-updated'],
109109
],
110-
'badge' => [
111-
'data' => $this->t('Badge'),
112-
'class' => ['badge'],
113-
],
110+
'badge' => $this->t('Badge'),
114111
];
115112
}
116113

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<svg xmlns="http://www.w3.org/2000/svg" height="20">
22
<linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient>
33
<rect rx="3" width="250" height="20" fill="#555"/>
4-
<rect rx="3" x="180" width="115" height="20" fill="{{ background_color }}"/>
4+
<rect rx="3" x="150" width="115" height="20" fill="{{ background_color }}"/>
55
<rect rx="3" height="20" fill="url(#b)"/>
66
<g text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
7-
<text x="90" y="15" fill="#000" fill-opacity=".8">{{ label }}</text>
8-
<text x="90" y="14" fill="#fff">{{ label }}</text>
9-
<text x="238" y="15" fill="#fff" fill-opacity=".3">{{ status }}</text>
10-
<text x="238" y="14" fill="{{ text_color }}">{{ status }}</text>
7+
<text x="75" y="15" fill="#000" fill-opacity=".8">{{ label }}</text>
8+
<text x="75" y="14" fill="#fff">{{ label }}</text>
9+
<text x="210" y="15" fill="#fff" fill-opacity=".3">{{ status }}</text>
10+
<text x="210" y="14" fill="{{ text_color }}">{{ status }}</text>
1111
</g>
1212
</svg>

0 commit comments

Comments
 (0)