mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
Merge branch 'master' into next61
# Conflicts: # package-lock.json # src/public/app/services/note_content_renderer.js # src/public/app/widgets/note_tree.js # src/routes/routes.js # src/services/consistency_checks.js # src/services/notes.js # src/services/task_context.js
This commit is contained in:
@@ -187,7 +187,7 @@ export default class TocWidget extends RightPanelWidget {
|
||||
|
||||
if (isReadOnly) {
|
||||
const $container = await this.noteContext.getContentElement();
|
||||
const headingElement = $container.find(":header")[headingIndex];
|
||||
const headingElement = $container.find(":header:not(section.include-note :header)")[headingIndex];
|
||||
|
||||
if (headingElement != null) {
|
||||
headingElement.scrollIntoView({ behavior: "smooth" });
|
||||
@@ -206,7 +206,7 @@ export default class TocWidget extends RightPanelWidget {
|
||||
// navigate (note that the TOC rendering and other TOC
|
||||
// entries' navigation could be wrong too)
|
||||
if (headingNode != null) {
|
||||
$(textEditor.editing.view.domRoots.values().next().value).find(':header')[headingIndex].scrollIntoView({
|
||||
$(textEditor.editing.view.domRoots.values().next().value).find(':header:not(section.include-note :header)')[headingIndex].scrollIntoView({
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user