Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vulnerability details text overflow #1282

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading