1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Formatting

This commit is contained in:
squidfunk 2021-03-12 15:17:11 +01:00
parent 393e05cc0a
commit dbad649181

View File

@ -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$])