Fix hint position for checkboxes (#2834)

This commit is contained in:
Christian Günter 2019-08-04 18:47:58 +02:00 committed by Lars Hvam
parent 4c4fae820f
commit 77d3ff885f
2 changed files with 14 additions and 1 deletions

View File

@ -727,10 +727,17 @@ div.message-panel:hover .message-panel-commands {
/* Position the tooltip text */
position: absolute;
z-index: 1;
margin-left: -60px;
margin-top: -30px;
}
.link-hint-a {
margin-left: -60px;
}
.link-hint-input {
margin-left: -30px;
}
.link-hint .pending { color: hsla(0, 0%, 0%, 0.2); }
/* Tooltip arrow */

View File

@ -786,6 +786,12 @@ LinkHints.prototype.deployHintContainers = function() {
hint.pendingSpan.classList.add("pending");
hint.container.classList.add("link-hint");
if (hint.parent.nodeName === "INPUT"){
hint.container.classList.add("link-hint-input");
} else {
hint.container.classList.add("link-hint-a");
}
hint.container.classList.add("nodisplay"); // hide by default
hint.container.dataset.code = codeCounter.toString(); // not really needed, more for debug