Skip to content

Commit

Permalink
CSS refinements #95
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Aug 23, 2024
1 parent 7161375 commit 92cab77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component_catalog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ class VulnerabilityListView(
table_headers = (
Header("vulnerability_id", _("Vulnerability")),
Header("aliases", _("Aliases")),
Header("highest_score", _("Severity score"), help_text="TODO", filter="highest_score"),
Header("highest_score", _("Score"), help_text="Severity score range", filter="highest_score"),
# Header("priority", _("Priority"), filter="priority"),
Header("summary", _("Summary")),
Header("affected_packages_count", "Affected packages", help_text="TODO"),
Expand All @@ -2517,7 +2517,7 @@ def get_queryset(self):
affected_packages_count=Count("affected_packages"),
)
.order_by(
# "priority",
"priority",
"-highest_score",
"-lowest_score",
)
Expand Down
9 changes: 9 additions & 0 deletions dejacode/static/css/dejacode_bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,15 @@ table.packages-table .column-primary_language {
table.vulnerabilities-table .column-vulnerability_id {
width: 220px;
}
table.vulnerabilities-table .column-aliases {
width: 210px;
}
table.vulnerabilities-table .column-highest_score {
width: 110px;
}
table.vulnerabilities-table .column-priority {
width: 110px;
}
table.vulnerabilities-table .column-summary {
width: 300px;
max-width: 300px;
Expand Down

0 comments on commit 92cab77

Please sign in to comment.