From c9d28f6fa378e4f7837cbbf2cfaa0eea3a5b6468 Mon Sep 17 00:00:00 2001 From: Chen Date: Tue, 21 May 2024 00:31:47 +1000 Subject: [PATCH] Collapse related field by it is too long --- gcp/appengine/frontend3/src/styles.scss | 5 +++ .../src/templates/vulnerability.html | 33 ++++++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/gcp/appengine/frontend3/src/styles.scss b/gcp/appengine/frontend3/src/styles.scss index 3322757bda8..d28c391f5e1 100644 --- a/gcp/appengine/frontend3/src/styles.scss +++ b/gcp/appengine/frontend3/src/styles.scss @@ -867,6 +867,11 @@ dl.vulnerability-details, } } +.showmore { + cursor: pointer; + font-weight: bold; +} + /** Home page */ .wrapper.decorated { diff --git a/gcp/appengine/frontend3/src/templates/vulnerability.html b/gcp/appengine/frontend3/src/templates/vulnerability.html index 3cf93fa10e7..1648b937697 100644 --- a/gcp/appengine/frontend3/src/templates/vulnerability.html +++ b/gcp/appengine/frontend3/src/templates/vulnerability.html @@ -38,7 +38,7 @@

{{ vulnerability.id }}

{% if vulnerability.related -%}
Related
-