fix facette label max width

This commit is contained in:
Olivier Mayer
2015-04-21 22:13:33 +09:00
parent c1e3172d96
commit 9968f1f9d7
2 changed files with 11 additions and 2 deletions

View File

@@ -2217,6 +2217,10 @@ H4 {
font-size: 65%;
}
#proposals UL.fancytree-container UL li{
white-space: pre-line !important;
}
#proposals .fancytree-folder .fancytree-expander:before {
content: '\25C0'; /* U+25C0 BLACK LEFT-POINTING TRIANGLE */
color: #a0a0a0;
@@ -2241,7 +2245,7 @@ H4 {
#proposals .facetFilter {
font-weight: normal;
position:absolute;
width:100px;
width:122px;
height:25px;
line-height: 25px;
vertical-align: middle;

View File

@@ -569,7 +569,12 @@ function getFacetsTree() {
var s_label = document.createElement("SPAN");
s_label.setAttribute("class", "facetFilter-label");
s_label.setAttribute("title", facetFilter);
s_label.appendChild(document.createTextNode(facetFilter));
var length = 15;
var facetFilterString = facetFilter;
var facetFilterTruncatedString = facetFilterString.substring(0,length);
s_label.appendChild(document.createTextNode(facetFilterTruncatedString));
var s_closer = document.createElement("A");
s_closer.setAttribute("class", "facetFilter-closer");