small improvements and fixes

This commit is contained in:
zadam
2020-08-06 00:06:42 +02:00
parent ddf0a89e1f
commit f60af1f05e
9 changed files with 29 additions and 20 deletions

View File

@@ -45,7 +45,7 @@ async function mouseEnterHandler() {
const note = await treeCache.getNote(noteId);
const noteComplement = await treeCache.getNoteComplement(noteId);
const html = await renderTooltip(note, noteComplement);
const html = '<div class="note-tooltip-content">' + await renderTooltip(note, noteComplement) + '</div>';
// we need to check if we're still hovering over the element
// since the operation to get tooltip content was async, it is possible that
@@ -144,4 +144,4 @@ async function renderTooltip(note, noteComplement) {
export default {
setupGlobalTooltip,
setupElementTooltip
}
}