Commit 7c0e7462 authored by Christopher S Barnett's avatar Christopher S Barnett
Browse files

- fix issue where removal icon wrapped before selection text

parent 1b8b5b74
......@@ -240,7 +240,9 @@ div#splash-screen h1 {
.result-row .selection {
color: #eeeeee;
/*
white-space: nowrap;
*/
}
.result-row .result-counter {
......
......@@ -125,8 +125,13 @@
<script type="text/template" id="sel-label-template">
<div><%= val %> <% if (showRemove) { %><span class="glyphicon glyphicon-remove-circle remove-selection"></span> <% }
%>
<div><% if (showRemove) { var tokens = val.match(/\S+/g); var last = tokens.pop(); %>
<%= tokens.join(' ') %>
<span style="white-space: nowrap"><%= last %><span
class="glyphicon glyphicon-remove-circle remove-selection"></span></span>
<% } else { %>
<%= val %>
<% } %>
</div>
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment