[design] improve group name spacing

This commit is contained in:
zombieFox 2020-02-18 11:18:06 +00:00
parent 089857551c
commit 77c3895c93
3 changed files with 6 additions and 4 deletions

View File

@ -82,9 +82,8 @@
.group-name-text {
margin-bottom: 0;
padding-right: 1em;
overflow: hidden;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}

View File

@ -2826,6 +2826,7 @@ var control = (function() {
path: "group.name.show",
type: "checkbox",
func: function() {
link.groupAndItems();
render.class();
render.dependents();
}

View File

@ -380,10 +380,12 @@ var link = (function() {
});
var groupControl = helper.node("div|class:group-control form-group");
groupName.appendChild(groupNameText);
groupHeader.appendChild(groupControl);
groupHeader.appendChild(groupName);
group.appendChild(groupHeader);
if (state.get.current().group.name.show) {
groupName.appendChild(groupNameText);
groupHeader.appendChild(groupName);
};
var groupBody = helper.node("div|class:group-body");
group.appendChild(groupBody);