fix(mobile): restore body scroll and prevent spurious section scroll
Three layered fixes for mobile note scrolling: 1. app.css / App.vue: on mobile, override overflow:hidden on html/body and overflow:visible on #main-app so content from useResizeContainer (which sets the note-container height to (n+1)*100vh) propagates to the document and document.body.scrollTop works again. 2. FluxNote.vue: give each .note an explicit height:100dvh on mobile so the percentage-based height:100% does not resolve against the inflated container height set by useResizeContainer. 3. StackedNote / StackedPublicNote: replace overflow-y:hidden with overflow-y:clip on the section. Unlike hidden, clip does not create a scroll container, so touch events fall through to the page scroll and the section never feels "draggable" when content fits within the note.
This commit is contained in:
@@ -26,6 +26,12 @@ const { isATProtoReady } = useATProtoLogin()
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
#main-app {
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
::view-transition-old(root),
|
||||
::view-transition-new(root) {
|
||||
animation-duration: 0.25s;
|
||||
|
||||
Reference in New Issue
Block a user