Open 2BAB opened 3 weeks ago
It's always visible even you're already at the top, similar to this one https://github.com/vuejs/vitepress/issues/2312, however, it happened to custom layout on mobile devices (with narrow viewport width) this time.
--- layout: foo navbar: false sidebar: false ---
Foo.vue
<template> <div style="width: 100%; height: 2000px; background-color: gray; overflow: scroll;"> ajidsjaisdjiajsiiajsdijasid </div> </template>
app.component('foo', Foo)
Then we will observe the bug like the above screenshot.
themeConfig: { ... returnToTop: false, ...}.
System: OS: macOS 14.4.1 CPU: (10) arm64 Apple M1 Max Memory: 11.13 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Browsers: Chrome: 124.0.6367.60 Chrome Canary: 126.0.6425.0 Safari: 17.4.1 npmPackages: vitepress: ^1.1.0 => 1.1.0
No response
Describe the bug
It's always visible even you're already at the top, similar to this one https://github.com/vuejs/vitepress/issues/2312, however, it happened to custom layout on mobile devices (with narrow viewport width) this time.
Reproduction
Foo.vue
:Then we will observe the bug like the above screenshot.
Expected behavior
themeConfig: { ... returnToTop: false, ...}.
System Info
Additional context
No response
Validations