Skip to content

Commit

Permalink
Merge pull request aboutcode-org#919 from nexB/916-ui-bug
Browse files Browse the repository at this point in the history
Fix UI wrap issue in Reference table aboutcode-org#916
  • Loading branch information
johnmhoran authored Sep 13, 2022
2 parents 3856f05 + de61405 commit 08f9fac
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 08f9fac

Please sign in to comment.