Skip to content

Commit

Permalink
Make the rendering of severity consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
zahraaalizadeh committed May 17, 2024
1 parent 511d314 commit 212c8f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcp/appengine/frontend3/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,11 @@ dl.vulnerability-details,
padding: 14px 0;
border-bottom: 1px dashed #fff;
}

.severity {
padding: 0;
font-family: $osv-heading-font-family;
}
}

/** Home page */
Expand Down
6 changes: 5 additions & 1 deletion gcp/appengine/frontend3/src/templates/vulnerability.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ <h3 class="mdc-layout-grid__cell--span-3">
Severity
</h3>
<div class="mdc-layout-grid__cell--span-9">
<pre class="specific">{{ affected.severity }}</pre>
<ul class="severity">
{% for item in affected.severity -%}
<li>{{ item.type }} - {{ item.score }}</li>
{% endfor -%}
</ul>
</div>
</div>
{%- endif -%}
Expand Down

0 comments on commit 212c8f1

Please sign in to comment.