Added em-dash when facet cell is empty.

Other minor visual adjustments.
HFJ-1620
pull/17/head
Frode Petterson 2016-03-01 10:43:13 +01:00
parent a398589c80
commit a41ecccb9a
2 changed files with 5 additions and 4 deletions

View File

@ -222,7 +222,7 @@ var H5PDataView = (function ($) {
facets += '<span class="h5p-facet" role="button" tabindex="0" data-id="' + input.id + '" data-col="' + col + '">' + input.title + '</span>';
}
return facets;
return facets === '' ? '—' : facets;
};
/**

View File

@ -257,8 +257,8 @@ button.h5p-admin.disabled:hover {
}
.h5p-data-view input[type="text"] {
margin-bottom: 0.5em;
margin-right: 0.5em;
float: left;
margin-right: 10px;
}
.h5p-data-view input[type="text"]::-ms-clear {
display: none;
@ -299,10 +299,11 @@ button.h5p-admin.disabled:hover {
box-shadow: 0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);
}
.h5p-data-view .h5p-facet-wrapper {
line-height: 27px;
line-height: 23px;
}
.h5p-data-view .h5p-facet-tag {
margin-left: 10px;
margin: 2px 0 0 0.5em;
font-size: 12px;
background: #e8e8e8;
border: 1px solid #cbcbcc;
border-radius: 5px;