Skip to content

Commit

Permalink
Fix Vulnerability details text overflow #1279
Browse files Browse the repository at this point in the history
Reference: #1279

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
  • Loading branch information
johnmhoran committed Aug 28, 2023
1 parent 2cb0e29 commit b6e38d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions vulnerabilities/templates/vulnerability_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</tr>
<tr>
<td class="two-col-left">Summary</td>
<td class="two-col-right">{{ vulnerability.summary }}
<td class="two-col-right wrap-strings">{{ vulnerability.summary }}
</td>
</tr>
</tbody>
Expand All @@ -92,7 +92,7 @@
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border">
<tr>
<th style="width: 160px;"> System </th>
<th> Score </th>
<th style="width: 100px;"> Score </th>
<th> Found at </th>
</tr>
{% for severity in severities %}
Expand Down
14 changes: 6 additions & 8 deletions vulnerablecode/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,14 @@ code {
border-color: #dbdbdb;
}

.table td {
/* 2023-08-28 Monday 14:55:42. Is this still needed or does wrap-strings take its place? Keep eyes peeled for any odd <td> displays. */
/* .table td {
word-wrap: break-word;
/* 8/24/2022 Wednesday 4:56:57 PM. We need this for just 1 table as I recall, displaying some sort of data with few/no word breaks
but this messes up the look of columns that need a word-break wrap
TODO: identify and create separate CSS class for that table */
/* word-break: break-all; */
}
} */


.wrap-strings {
word-break: break-all;
word-break: break-word;
}

.two-col-left {
Expand Down Expand Up @@ -368,4 +366,4 @@ a.small_page_button {

span.tag.custom {
margin: 0px 0px 6px 10px;
}
}

0 comments on commit b6e38d5

Please sign in to comment.