mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
optimize usage of note path and attributes in the note tooltip, #1558
This commit is contained in:
@@ -88,7 +88,7 @@ async function renderTooltip(note) {
|
||||
return;
|
||||
}
|
||||
|
||||
let content = $("<h5>").text(await treeService.getNotePathTitle(someNotePath)).prop('outerHTML');
|
||||
let content = '<h5 class="note-tooltip-title">' + (await treeService.getNoteTitleWithPathAsSuffix(someNotePath)).prop('outerHTML') + '</h5>';
|
||||
|
||||
const {$renderedAttributes} = await attributeRenderer.renderNormalAttributes(note);
|
||||
|
||||
@@ -98,7 +98,7 @@ async function renderTooltip(note) {
|
||||
});
|
||||
|
||||
content = content
|
||||
+ $renderedAttributes[0].outerHTML
|
||||
+ '<div class="note-tooltip-attributes">' + $renderedAttributes[0].outerHTML + '</div>'
|
||||
+ $renderedContent[0].outerHTML;
|
||||
|
||||
return content;
|
||||
|
||||
Reference in New Issue
Block a user