mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Formatting
This commit is contained in:
parent
393e05cc0a
commit
dbad649181
@ -162,9 +162,7 @@ export function watchTableOfContents(
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
/* Sort index by vertical offset (see https://bit.ly/30z6QSO) */
|
/* Sort index by vertical offset (see https://bit.ly/30z6QSO) */
|
||||||
map(index => new Map([...index]
|
map(index => new Map([...index].sort(([, a], [, b]) => a - b))),
|
||||||
.sort(([, a], [, b]) => a - b)
|
|
||||||
)),
|
|
||||||
|
|
||||||
/* Re-compute partition when viewport offset changes */
|
/* Re-compute partition when viewport offset changes */
|
||||||
switchMap(index => combineLatest([adjust$, viewport$])
|
switchMap(index => combineLatest([adjust$, viewport$])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user