Skip to content

Commit 08f9fac

Browse files
authored
Merge pull request #919 from nexB/916-ui-bug
Fix UI wrap issue in Reference table #916
2 parents 3856f05 + de61405 commit 08f9fac

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

vulnerabilities/templates/vulnerability_details.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@
190190
{% for ref in vulnerability.references.all %}
191191
<tr>
192192
{% if ref.reference_id %}
193-
<td>{{ ref.reference_id }}</td>
193+
<td class="wrap-strings">{{ ref.reference_id }}</td>
194194
{% else %}
195195
<td></td>
196196
{% endif %}
197-
<td><a href="{{ ref.url }}" target="_blank">{{ ref.url }}<i class="fa fa-external-link fa_link_custom"></i></a></td>
197+
<td class="wrap-strings"><a href="{{ ref.url }}" target="_blank">{{ ref.url }}<i class="fa fa-external-link fa_link_custom"></i></a></td>
198198
</tr>
199199
{% empty %}
200200
<tr>

vulnerablecode/static/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ code {
193193
/* word-break: break-all; */
194194
}
195195

196+
.wrap-strings {
197+
word-break: break-all;
198+
}
199+
196200
.two-col-left {
197201
width: 160px;
198202
text-align: right !important;

0 commit comments

Comments
 (0)