Skip to content

Commit

Permalink
fix: keep body overflow when rendering in element
Browse files Browse the repository at this point in the history
This enables scrolling single file share views
so the download button below an image becomes visible.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Aug 1, 2022
1 parent 4722a1b commit fc63b6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ export default {
const [dirPath, fileName] = extractFilePaths(path)

// prevent scrolling while opened
document.body.style.overflow = 'hidden'
if (!this.el) {
document.body.style.overflow = 'hidden'
}

// swap title with original one
const title = document.getElementsByTagName('head')[0].getElementsByTagName('title')[0]
Expand Down

0 comments on commit fc63b6f

Please sign in to comment.