Skip to content
Snippets Groups Projects
Commit 03d54194 authored by anonymous's avatar anonymous
Browse files

fix label truncation

parent 49ba09cb
No related branches found
No related tags found
No related merge requests found
...@@ -145,10 +145,6 @@ input[type=radio], input[type=checkbox] { ...@@ -145,10 +145,6 @@ input[type=radio], input[type=checkbox] {
top: 0px; top: 0px;
} }
.nav-simple>li {
border-bottom: 0px;
padding: 15px 0px 15px 0px;
}
@media (min-width: 768px){ @media (min-width: 768px){
[role=main], .main { [role=main], .main {
...@@ -234,9 +230,20 @@ input[type=radio], input[type=checkbox] { ...@@ -234,9 +230,20 @@ input[type=radio], input[type=checkbox] {
color: black; color: black;
} }
.nav-simple>li {
border-bottom: 0px;
padding: 15px 0px 0px 0px;
width: 193px;
white-space: nowrap;
display: flex;
justify-content: space-between;
}
.nav-item .facet_label { .nav-item .facet_label {
display: block; flex:1;
float: left; white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.nav-item .facet_label a{ .nav-item .facet_label a{
...@@ -244,16 +251,11 @@ input[type=radio], input[type=checkbox] { ...@@ -244,16 +251,11 @@ input[type=radio], input[type=checkbox] {
} }
.nav-item .facet_count { .nav-item .facet_count {
display: block; display: inline-block;
float: right;
background-color: white; background-color: white;
padding: 0px 2px 0px 2px; padding: 0px 2px 0px 2px;
} }
.filter-checkbox {
}
/* checkbox customize trick, see: https://stackoverflow.com/questions/24322599/css-why-cannot-change-checkbox-color-whatever-i-do */ /* checkbox customize trick, see: https://stackoverflow.com/questions/24322599/css-why-cannot-change-checkbox-color-whatever-i-do */
.facet_label input[type=checkbox] { .facet_label input[type=checkbox] {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<input type="checkbox" {% if item.active %} checked {% endif %} class="filter-checkbox" id="check-{{ title.lower() }}-{{ loop.index }}"/> <input type="checkbox" {% if item.active %} checked {% endif %} class="filter-checkbox" id="check-{{ title.lower() }}-{{ loop.index }}"/>
<label class="mylabel" for="check-{{ title.lower() }}-{{ loop.index }}"></label> <label class="mylabel" for="check-{{ title.lower() }}-{{ loop.index }}"></label>
<a href="{{ href }}" title="{{ label if label != label_truncated else '' }}"> <a href="{{ href }}" title="{{ label if label != label_truncated else '' }}">
<span>{{ label_truncated }}</span> <span>{{ label}}</span>
</a> </a>
</div> </div>
<div class="facet_count"> <div class="facet_count">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment