mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
Enable clickable icons for link lints (#5271)
* Enable icon for link lints * Enable clickable icons for link lints
This commit is contained in:
parent
1a31eb3f2f
commit
a416de1cf9
|
@ -931,6 +931,10 @@ div.message-panel:hover .message-panel-commands {
|
|||
margin-left: -30px;
|
||||
}
|
||||
|
||||
.link-hint-i {
|
||||
margin-left: -30px;
|
||||
}
|
||||
|
||||
.link-hint .pending { color: hsla(0, 0%, 0%, 0.2); }
|
||||
|
||||
/* Tooltip arrow */
|
||||
|
|
|
@ -1341,7 +1341,7 @@ LinkHints.prototype.getHintStartValue = function(targetsCount){
|
|||
|
||||
LinkHints.prototype.deployHintContainers = function() {
|
||||
|
||||
var hintTargets = document.querySelectorAll("a, input, textarea");
|
||||
var hintTargets = document.querySelectorAll("a, input, textarea, i");
|
||||
var codeCounter = this.getHintStartValue(hintTargets.length);
|
||||
var hintsMap = { first: codeCounter };
|
||||
|
||||
|
@ -1368,8 +1368,12 @@ LinkHints.prototype.deployHintContainers = function() {
|
|||
hint.container.classList.add("link-hint");
|
||||
if (hint.parent.nodeName === "INPUT" || hint.parent.nodeName === "TEXTAREA"){
|
||||
hint.container.classList.add("link-hint-input");
|
||||
} else {
|
||||
} else if (hint.parent.nodeName === "A") {
|
||||
hint.container.classList.add("link-hint-a");
|
||||
} else if (hint.parent.nodeName === "I" && hint.parent.classList.contains("cursor-pointer")) {
|
||||
hint.container.classList.add("link-hint-i");
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
|
||||
hint.container.classList.add("nodisplay"); // hide by default
|
||||
|
|
Loading…
Reference in New Issue
Block a user