Skip to content

Commit

Permalink
Fix UI wrap issue in Reference table #916
Browse files Browse the repository at this point in the history
Reference: #916

Signed-off-by: John M. Horan <johnmhoran@gmail.com>
  • Loading branch information
johnmhoran committed Sep 13, 2022
1 parent 3856f05 commit de61405
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulnerabilities/templates/vulnerability_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
{% for ref in vulnerability.references.all %}
<tr>
{% if ref.reference_id %}
<td>{{ ref.reference_id }}</td>
<td class="wrap-strings">{{ ref.reference_id }}</td>
{% else %}
<td></td>
{% endif %}
<td><a href="{{ ref.url }}" target="_blank">{{ ref.url }}<i class="fa fa-external-link fa_link_custom"></i></a></td>
<td class="wrap-strings"><a href="{{ ref.url }}" target="_blank">{{ ref.url }}<i class="fa fa-external-link fa_link_custom"></i></a></td>
</tr>
{% empty %}
<tr>
Expand Down
4 changes: 4 additions & 0 deletions vulnerablecode/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ code {
/* word-break: break-all; */
}

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

.two-col-left {
width: 160px;
text-align: right !important;
Expand Down

0 comments on commit de61405

Please sign in to comment.