bookish-press 0.4.44 → 0.4.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -214,7 +214,7 @@ let editable = isBookEditable() ||
|
|
|
214
214
|
<!-- Collapse the outline if a marginal is selected. -->
|
|
215
215
|
<Outline
|
|
216
216
|
slot="outline"
|
|
217
|
-
collapse={marginal !== undefined}
|
|
217
|
+
collapse={$marginal !== undefined}
|
|
218
218
|
previous={$edition.getPreviousChapterID(chapterID)}
|
|
219
219
|
next={$edition.getNextChapterID(chapterID)}
|
|
220
220
|
listener={(expanded) => {
|
|
@@ -77,7 +77,7 @@ function highlight() {
|
|
|
77
77
|
const threshold = getHighlightThreshold();
|
|
78
78
|
// Find the header that we're past so we can update the outline.
|
|
79
79
|
let indexOfNearestHeaderAbove = -1; // -1 represents the title
|
|
80
|
-
Array.from(document.getElementsByClassName('
|
|
80
|
+
Array.from(document.getElementsByClassName('page-header')).forEach((header, index) => {
|
|
81
81
|
// Is this a header we care about?
|
|
82
82
|
if (header.tagName === 'H1' ||
|
|
83
83
|
header.tagName === 'H2' ||
|
package/models/book/Theme.js
CHANGED