fix mindmapList filter problem on long labels names

This commit is contained in:
Ezequiel Bergamaschi 2014-02-01 18:54:37 -03:00 committed by Ezequiel Bergamaschi
parent f248a8c099
commit 0738804d88
2 changed files with 11 additions and 4 deletions

View File

@ -115,15 +115,22 @@ input#selectAll {
-moz-border-radius: 3px;
border-radius: 3px;
background-color: black;
float: left;
}
.labelIcon {
float: left;
}
.labelName {
display: inline-block;
position: relative;
left: 7px;
}
.labelNameList {
max-width: 120px;
word-wrap: break-word;
}
.labelTag {
border: 1px solid;
border-radius: 4px;

View File

@ -3,9 +3,9 @@ function createLabelItem(data, id) {
$("#foldersContainer").find("ul").append(
$("<li data-filter=\"" + data.title + "\">").append(
"<a href=\"#\"> " +
"<i class=\"icon-tag\"></i>" +
"<i class=\"icon-tag labelIcon\"></i>" +
"<div class='labelColor' style='background: " + data.color + "'></div>" +
"<div class='labelName'>" + data.title + "</div>" +
"<div class='labelName labelNameList'>" + data.title + "</div>" +
"<button id='deleteLabelBtn' class='close closeLabel' labelid=\""+ labelId +"\">x</button>" +
"</a>"
)