mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Merge remote-tracking branch 'origin/stable'
This commit is contained in:
commit
59e8cb8c8b
@ -797,8 +797,10 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
|
||||
const node = await this.expandToNote(activeContext.notePath);
|
||||
|
||||
await node.makeVisible({scrollIntoView: true});
|
||||
node.setActive(true, {noEvents: true, noFocus: false});
|
||||
if (node) {
|
||||
await node.makeVisible({scrollIntoView: true});
|
||||
node.setActive(true, {noEvents: true, noFocus: false});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -851,7 +853,11 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
// these are real notes with real notePath, user can display them in a detail
|
||||
// but they don't have a node in the tree
|
||||
|
||||
ws.logError(`Can't find node for child node of noteId=${childNoteId} for parent of noteId=${parentNode.data.noteId} and hoistedNoteId=${hoistedNoteService.getHoistedNoteId()}, requested path is ${notePath}`);
|
||||
const childNote = await treeCache.getNote(childNoteId);
|
||||
|
||||
if (!childNote || childNote.type !== 'image') {
|
||||
ws.logError(`Can't find node for child node of noteId=${childNoteId} for parent of noteId=${parentNode.data.noteId} and hoistedNoteId=${hoistedNoteService.getHoistedNoteId()}, requested path is ${notePath}`);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -5,6 +5,7 @@ const TPL = `
|
||||
<style>
|
||||
.note-detail-read-only-code {
|
||||
position: relative;
|
||||
min-height: 50px;
|
||||
}
|
||||
|
||||
.note-detail-read-only-code-content {
|
||||
|
@ -25,6 +25,7 @@ const TPL = `
|
||||
padding-top: 10px;
|
||||
font-family: var(--detail-text-font-family);
|
||||
position: relative;
|
||||
min-height: 50px;
|
||||
}
|
||||
|
||||
.note-detail-readonly-text p:first-child, .note-detail-readonly-text::before {
|
||||
|
Loading…
x
Reference in New Issue
Block a user