Skip to content

Commit 5e17a0e

Browse files
rushk014xingzhang-suse
authored andcommitted
Fix: UI styling issues on Registry configuration detail and Vex management detail pages
1 parent a633c18 commit 5e17a0e

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

pkg/sbombastic-image-vulnerability-scanner/config/table-headers.ts

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,35 +71,38 @@ export const REGISTRY_SCAN_HISTORY_TABLE = [
7171
value: "status.statusResult.lastTransitionTime",
7272
formatter: "Date",
7373
sort: "status.statusResult.lastTransitionTime:desc",
74+
width: 210,
7475
},
7576
{
7677
name: "progress",
7778
labelKey: "imageScanner.registries.configuration.scanTable.header.progress",
7879
getValue: (row: any) => row,
7980
formatter: "Progress",
8081
sort: "progress",
82+
width: 70,
8183
},
8284
{
8385
name: "imagesScanned",
8486
labelKey:
8587
"imageScanner.registries.configuration.scanTable.header.imagesScanned",
8688
value: "status.scannedImagesCount",
8789
sort: "status.scannedImagesCount",
90+
width: 120,
8891
},
8992
{
9093
name: "imagesFound",
9194
labelKey:
9295
"imageScanner.registries.configuration.scanTable.header.imagesFound",
9396
value: "status.imagesCount",
9497
sort: "status.imagesCount",
98+
width: 120,
9599
},
96100
{
97101
name: "errors",
98102
labelKey: "imageScanner.registries.configuration.scanTable.header.error",
99103
value: "status.statusResult.message",
100104
formatter: "ScanErrorCell",
101105
sort: "errors",
102-
width: 150,
103106
},
104107
];
105108

@@ -156,7 +159,13 @@ export const IMAGE_LIST_TABLE = [
156159
labelKey: "imageScanner.images.listTable.headers.identifiedCVEs",
157160
value: "spec.scanResult",
158161
formatter: "IdentifiedCVEsCell",
159-
sort: ["spec.scanResult.critical", "spec.scanResult.high", "spec.scanResult.medium", "spec.scanResult.low", "spec.scanResult.none"],
162+
sort: [
163+
"spec.scanResult.critical",
164+
"spec.scanResult.high",
165+
"spec.scanResult.medium",
166+
"spec.scanResult.low",
167+
"spec.scanResult.none",
168+
],
160169
width: 300,
161170
},
162171
{
@@ -349,7 +358,7 @@ export const VULNERABILITIES_DETAIL_IMAGE_LIST_TABLE = [
349358
name: "package",
350359
labelKey: "imageScanner.vulnerabilities.details.table.headers.package",
351360
value: "package",
352-
sort: "package"
361+
sort: "package",
353362
},
354363
{
355364
name: "status",
@@ -366,7 +375,8 @@ export const VULNERABILITIES_DETAIL_IMAGE_LIST_TABLE = [
366375
},
367376
{
368377
name: "packageVersion",
369-
labelKey: "imageScanner.vulnerabilities.details.table.headers.packageVersion",
378+
labelKey:
379+
"imageScanner.vulnerabilities.details.table.headers.packageVersion",
370380
value: "packageVersion",
371381
sort: "packageVersion",
372382
},
@@ -381,7 +391,7 @@ export const VULNERABILITIES_DETAIL_IMAGE_LIST_TABLE = [
381391
labelKey: "imageScanner.vulnerabilities.details.table.headers.repository",
382392
value: "repository",
383393
sort: "repository",
384-
}
394+
},
385395
];
386396

387397
export const VULNERABILITIES_DETAIL_GROUP_BY_REPOSITORY_TABLE = [
@@ -397,8 +407,8 @@ export const VULNERABILITIES_DETAIL_GROUP_BY_REPOSITORY_TABLE = [
397407
labelKey: "imageScanner.vulnerabilities.details.table.headers.registry",
398408
value: "registry",
399409
sort: "registry",
400-
}
401-
]
410+
},
411+
];
402412

403413
export const VULNERABILITIES_DETAIL_SUB_IMAGES_TABLE = [
404414
{
@@ -435,7 +445,8 @@ export const VULNERABILITIES_DETAIL_SUB_IMAGES_TABLE = [
435445
},
436446
{
437447
name: "packageVersion",
438-
labelKey: "imageScanner.vulnerabilities.details.table.headers.packageVersion",
448+
labelKey:
449+
"imageScanner.vulnerabilities.details.table.headers.packageVersion",
439450
value: "packageVersion",
440451
sort: "packageVersion",
441452
},
@@ -444,6 +455,5 @@ export const VULNERABILITIES_DETAIL_SUB_IMAGES_TABLE = [
444455
labelKey: "imageScanner.vulnerabilities.details.table.headers.packagePath",
445456
value: "packagePath",
446457
sort: "packagePath",
447-
}
448-
449-
]
458+
},
459+
];

pkg/sbombastic-image-vulnerability-scanner/formatters/UriExternalLink.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ export default {
2020
<i class="icon icon-external-link"></i>
2121
</a>
2222
</template>
23+
24+
<style lang="scss" scoped>
25+
.uri-link {
26+
display: flex;
27+
align-items: center;
28+
gap: 4px;
29+
}
30+
</style>

0 commit comments

Comments
 (0)