Skip to content

Commit b6e38d5

Browse files
committed
Fix Vulnerability details text overflow #1279
Reference: #1279 Signed-off-by: John M. Horan <[email protected]>
1 parent 2cb0e29 commit b6e38d5

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

vulnerabilities/templates/vulnerability_details.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</tr>
7979
<tr>
8080
<td class="two-col-left">Summary</td>
81-
<td class="two-col-right">{{ vulnerability.summary }}
81+
<td class="two-col-right wrap-strings">{{ vulnerability.summary }}
8282
</td>
8383
</tr>
8484
</tbody>
@@ -92,7 +92,7 @@
9292
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border">
9393
<tr>
9494
<th style="width: 160px;"> System </th>
95-
<th> Score </th>
95+
<th style="width: 100px;"> Score </th>
9696
<th> Found at </th>
9797
</tr>
9898
{% for severity in severities %}

vulnerablecode/static/css/custom.css

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,14 @@ code {
185185
border-color: #dbdbdb;
186186
}
187187

188-
.table td {
188+
/* 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. */
189+
/* .table td {
189190
word-wrap: break-word;
190-
/* 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
191-
but this messes up the look of columns that need a word-break wrap
192-
TODO: identify and create separate CSS class for that table */
193-
/* word-break: break-all; */
194-
}
191+
} */
192+
195193

196194
.wrap-strings {
197-
word-break: break-all;
195+
word-break: break-word;
198196
}
199197

200198
.two-col-left {
@@ -368,4 +366,4 @@ a.small_page_button {
368366

369367
span.tag.custom {
370368
margin: 0px 0px 6px 10px;
371-
}
369+
}

0 commit comments

Comments
 (0)