mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 07:30:49 +08:00
This commit is contained in:
parent
1139ffddc0
commit
bd24cc4b3b
@ -20,12 +20,7 @@ export const showTooltip = (message: string, target: Element, tooltipClass?: str
|
||||
if (tooltipClass) {
|
||||
messageElement.classList.add("tooltip--" + tooltipClass);
|
||||
} else {
|
||||
const classesToRemove = Array.from(messageElement.classList).filter(className =>
|
||||
className.startsWith("tooltip--")
|
||||
);
|
||||
classesToRemove.forEach(className => {
|
||||
messageElement.classList.remove(className);
|
||||
});
|
||||
messageElement.className = "tooltip";
|
||||
}
|
||||
|
||||
let left = targetRect.left;
|
||||
|
Loading…
Reference in New Issue
Block a user