File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
pkg/sbombastic-image-vulnerability-scanner/components/common Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 7
7
<div class =" impacted-container" >
8
8
<div class =" impacted" >
9
9
<span >{{ vulnerability.impactedImages }}</span >
10
- <BlockPercentageBarAlt
10
+ <BlockPercentageBar
11
+ class =" percentage-bar"
11
12
:percentage =" (vulnerability.impactedImages / total) * 100"
12
- :ticks =" 23"
13
13
/>
14
14
</div >
15
15
</div >
16
16
</div >
17
17
</template >
18
18
19
19
<script >
20
- import BlockPercentageBarAlt from ' ./BlockPercentageBarAlt .vue' ;
20
+ import BlockPercentageBar from ' ./BlockPercentageBar .vue' ;
21
21
import ScoreBadge from ' ./ScoreBadge.vue' ;
22
22
23
23
export default {
24
24
name: ' severeVulnerabilitiesItem' ,
25
25
components: {
26
26
ScoreBadge,
27
- BlockPercentageBarAlt
27
+ BlockPercentageBar
28
28
},
29
29
props: {
30
30
vulnerability: {
46
46
47
47
<style lang="scss" scoped>
48
48
.vulnerability-record {
49
- display : flex ;
49
+ display : grid ;
50
+ grid-template-columns : 1fr 0.75fr 1.25fr ;
50
51
padding : 4px 0 ;
51
52
align-items : center ;
52
53
align-self : stretch ;
54
+ max-height : 28px ;
53
55
54
56
.cve {
55
57
display : flex ;
56
58
padding : 0 16px ;
57
59
align-items : flex-start ;
58
60
gap : 8px ;
59
- flex : 1 0 0 ;
60
61
}
61
62
62
63
.impacted-container {
63
64
display : flex ;
64
- width : 260px ;
65
65
padding : 0 16px ;
66
66
align-items : center ;
67
+ justify-content : end ;
68
+ min-width : 230px ;
67
69
}
68
70
69
71
.impacted {
73
75
gap : 16px ;
74
76
flex : 1 0 0 ;
75
77
align-self : stretch ;
78
+
79
+ .percentage-bar {
80
+ width : 158px ;
81
+ }
76
82
}
77
83
}
78
84
</style >
You can’t perform that action at this time.
0 commit comments