mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-30 01:32:39 -04:00
Refactored project structure
This commit is contained in:
@@ -98,9 +98,10 @@ interface MountOptions {
|
||||
export function watchSidebar(
|
||||
el: HTMLElement, { viewport$, main$ }: WatchOptions
|
||||
): Observable<Sidebar> {
|
||||
const parent = el.parentElement!
|
||||
const adjust =
|
||||
el.parentElement!.offsetTop -
|
||||
el.parentElement!.parentElement!.offsetTop
|
||||
parent.offsetTop -
|
||||
parent.parentElement!.offsetTop
|
||||
|
||||
/* Compute the sidebar's available height and if it should be locked */
|
||||
return combineLatest([main$, viewport$])
|
||||
|
||||
Reference in New Issue
Block a user