Commit 6d40eee5 authored by Phil Hughes's avatar Phil Hughes

Added label color box in dropdown

parent 8d147219
...@@ -78,8 +78,11 @@ class @LabelsSelect ...@@ -78,8 +78,11 @@ class @LabelsSelect
else else
selected = if label.title is selectedLabel then 'is-active' else '' selected = if label.title is selectedLabel then 'is-active' else ''
color = if label.color? then "<span class='dropdown-label-box' style='background-color: #{label.color}'></span>" else ""
"<li> "<li>
<a href='#' class='#{selected}'> <a href='#' class='#{selected}'>
#{color}
#{label.title} #{label.title}
</a> </a>
</li>" </li>"
......
...@@ -354,11 +354,11 @@ ...@@ -354,11 +354,11 @@
} }
} }
.dropdown-menu-labels { .dropdown-label-box {
.label { position: relative;
position: relative; top: 3px;
width: 30px; display: inline-block;
margin-right: 5px; width: 20px;
text-indent: -99999px; height: 16px;
} border-radius: 3px;
} }
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