oldUI fixups

* remove separator before 1st applies-to
* center name bubbles
This commit is contained in:
tophf 2020-11-16 19:57:49 +03:00
parent 8473053d79
commit 15eb1b890b
2 changed files with 5 additions and 1 deletions

View File

@ -243,6 +243,10 @@ a:hover {
margin-left: 1ex;
white-space: nowrap;
position: relative;
top: -2px;
}
.newUI .disabled h2::after,
.newUI .entry.usercss .style-name-link::after {
top: 2px;
}

View File

@ -288,7 +288,7 @@ function createStyleTargetsElement({entry, expanded, style = entry.styleMeta}) {
if (!newUI.enabled) {
if (numTargets === maxTargets) {
container = container.appendChild(t.template.extraAppliesTo.cloneNode(true));
} else if (numTargets > 0) {
} else if (numTargets > 1) {
container.appendChild(t.template.appliesToSeparator.cloneNode(true));
}
}