feat: fix portrait mode design in pwa
Task #44 completed by ClaudeQueue ClaudeQueue
This commit is contained in:
@@ -2005,13 +2005,13 @@ function applyPortraitPwaClass() {
|
||||
}
|
||||
}
|
||||
|
||||
// Scroll the player pane to the top of the scrollable .body so it's visible.
|
||||
// Only fires when in portrait-standalone mode where .body is the scroll root.
|
||||
// Scroll the list-pane to the top so the player content is at the start of the
|
||||
// list area. In portrait mode, .list-pane is the scroll container (not .body).
|
||||
function scrollPlayerIntoViewPortrait() {
|
||||
if (!isPortraitPWA()) return;
|
||||
const body = document.querySelector('.body');
|
||||
if (body) {
|
||||
body.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
const listPane = document.querySelector('.list-pane');
|
||||
if (listPane) {
|
||||
listPane.scrollTo({ top: 0, behavior: 'smooth' });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user