mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 03:32:30 +08:00
fix(toc): not hiding if too few headings
This commit is contained in:
parent
2e1b2004dc
commit
a98ed6cd29
@ -137,7 +137,7 @@ export default class TocWidget extends RightPanelWidget {
|
|||||||
this.$toc.append($toc);
|
this.$toc.append($toc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (["", "show"].includes(tocLabel?.value ?? "") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
if ((tocLabel?.value === "" || tocLabel?.value === "show") || headingCount >= (options.getInt("minTocHeadings") ?? 0)) {
|
||||||
this.toggleInt(true);
|
this.toggleInt(true);
|
||||||
this.noteContext.viewScope.tocPreviousVisible = true;
|
this.noteContext.viewScope.tocPreviousVisible = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user