File tree Expand file tree Collapse file tree 2 files changed +35
-4
lines changed
gcp/website/frontend3/src Expand file tree Collapse file tree 2 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -999,7 +999,7 @@ dl.vulnerability-details,
999
999
}
1000
1000
}
1001
1001
1002
- .ecosystem-content-panel {
1002
+ .ecosystem-content-panel {
1003
1003
position : relative ;
1004
1004
padding : 8px 0 16px 16px ;
1005
1005
@@ -1014,6 +1014,28 @@ dl.vulnerability-details,
1014
1014
background : #555 ;
1015
1015
}
1016
1016
}
1017
+
1018
+ $last-ecosystem-border-offset : 12px ;
1019
+ $last-ecosystem-border-gap : 8px ;
1020
+ $last-ecosystem-border-thickness : 1px ;
1021
+
1022
+ .ecosystem-content-panel--last {
1023
+ padding-bottom : $last-ecosystem-border-offset + $last-ecosystem-border-gap ;
1024
+
1025
+ & ::before {
1026
+ bottom : $last-ecosystem-border-offset + $last-ecosystem-border-thickness ;
1027
+ }
1028
+
1029
+ & ::after {
1030
+ content : ' ' ;
1031
+ position : absolute ;
1032
+ left : 0 ;
1033
+ right : 0 ;
1034
+ bottom : $last-ecosystem-border-offset ;
1035
+ height : $last-ecosystem-border-thickness ;
1036
+ background : $osv-grey-600 ;
1037
+ }
1038
+ }
1017
1039
1018
1040
.package-accordion {
1019
1041
position : relative ;
@@ -1031,6 +1053,14 @@ dl.vulnerability-details,
1031
1053
}
1032
1054
}
1033
1055
1056
+ .package-accordion--last {
1057
+ margin-bottom : 0 ;
1058
+
1059
+ .package-details-card {
1060
+ margin-bottom : $last-ecosystem-border-gap ;
1061
+ }
1062
+ }
1063
+
1034
1064
.package-accordion h3 .package-name-title {
1035
1065
font-family : $osv-heading-font-family ;
1036
1066
font-size : 1.1rem ;
Original file line number Diff line number Diff line change @@ -179,12 +179,13 @@ <h2 class="title">Affected packages</h2>
179
179
{% set ecosystems = vulnerability.affected | group_by_ecosystem %}
180
180
< spicy-sections class ="vulnerability-packages force-collapse ">
181
181
{% for ecosystem_name, packages in ecosystems.items() -%}
182
+ {% set is_last_ecosystem = loop.last %}
182
183
< h2 class ="package-header ">
183
184
< span class ="vuln-ecosystem spicy-sections-workaround "> {{ ecosystem_name }}</ span >
184
185
</ h2 >
185
- < div class ="ecosystem-content-panel ">
186
+ < div class ="ecosystem-content-panel{% if is_last_ecosystem %} ecosystem-content-panel--last{% endif %} ">
186
187
{% for affected in packages -%}
187
- < spicy-sections class ="package-accordion ">
188
+ < spicy-sections class ="package-accordion{% if is_last_ecosystem and loop.last %} package-accordion--last{% endif %} ">
188
189
< h3 class ="package-name-title ">
189
190
{% if 'package' in affected %}{{ affected.package.name }}{% else %}{{ vulnerability.repo | strip_scheme }}{% endif %}
190
191
</ h3 >
@@ -603,4 +604,4 @@ <h3 class="mdc-layout-grid__cell--span-3">
603
604
setupExpandibleList ( '.expandible-list' , 'li' ) ;
604
605
} ) ;
605
606
</ script >
606
- {% endblock -%}
607
+ {% endblock -%}
You can’t perform that action at this time.
0 commit comments