fix(theme): treat negative scrollY as top (#5368)

pull/5370/head
Bjorn Lu 4 weeks ago committed by GitHub
parent 0a96bae50b
commit 9d521db867
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -28,7 +28,7 @@ const { isHome, hasSidebar } = useLayout()
:class="{ :class="{
'has-sidebar': hasSidebar, 'has-sidebar': hasSidebar,
'home': isHome, 'home': isHome,
'top': y === 0, 'top': y <= 0,
'screen-open': isScreenOpen 'screen-open': isScreenOpen
}" }"
> >

Loading…
Cancel
Save