mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01: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) */
|
||||
map(index => new Map([...index]
|
||||
.sort(([, a], [, b]) => a - b)
|
||||
)),
|
||||
map(index => new Map([...index].sort(([, a], [, b]) => a - b))),
|
||||
|
||||
/* Re-compute partition when viewport offset changes */
|
||||
switchMap(index => combineLatest([adjust$, viewport$])
|
||||
|
Loading…
Reference in New Issue
Block a user