mirror of https://github.com/xwiki-labs/cryptpad
Hide the 'templates' list header if the category is empty
This commit is contained in:
parent
42075e4b5f
commit
ce50dbf3ca
|
@ -538,8 +538,10 @@ span {
|
|||
padding: 0 5px;
|
||||
display: table-cell;
|
||||
}
|
||||
}
|
||||
li {
|
||||
&:not(.header) {
|
||||
height: @toolbar-line-height;
|
||||
line-height: @toolbar-line-height;
|
||||
}
|
||||
&.header {
|
||||
cursor: default;
|
||||
color: @table-header-fg;
|
||||
|
|
|
@ -1650,8 +1650,10 @@ define([
|
|||
// and they don't hav a hierarchical structure (folder/subfolders)
|
||||
var displayHrefArray = function ($container, rootName, draggable) {
|
||||
var unsorted = files[rootName];
|
||||
var $fileHeader = getFileListHeader(false);
|
||||
$container.append($fileHeader);
|
||||
if (unsorted.length) {
|
||||
var $fileHeader = getFileListHeader(false);
|
||||
$container.append($fileHeader);
|
||||
}
|
||||
var keys = unsorted;
|
||||
var sortBy = Cryptpad.getLSAttribute(SORT_FILE_BY);
|
||||
sortBy = sortBy === "" ? sortBy = 'name' : sortBy;
|
||||
|
|
Loading…
Reference in New Issue