mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 19:45:08 -04:00
Refactored code annotations
This commit is contained in:
@@ -92,7 +92,7 @@ interface MountOptions {
|
||||
export function watchHeaderTitle(
|
||||
el: HTMLHeadingElement, { viewport$, header$ }: WatchOptions
|
||||
): Observable<HeaderTitle> {
|
||||
return watchViewportAt(el, { header$, viewport$ })
|
||||
return watchViewportAt(el, { viewport$, header$ })
|
||||
.pipe(
|
||||
map(({ offset: { y } }) => {
|
||||
const { height } = getElementSize(el)
|
||||
|
||||
Reference in New Issue
Block a user