From e813bcb3f9119800ca3fa5e83535d58ffb2b34de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8F=E3=82=8D=E3=81=AD=E3=81=93?= <290997+orangkucing@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:19:24 +0900 Subject: [PATCH 1/2] Update PDFView.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: くろねこ <290997+orangkucing@users.noreply.github.com> --- src/views/PDFView.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/PDFView.vue b/src/views/PDFView.vue index 474e6175..15d37934 100644 --- a/src/views/PDFView.vue +++ b/src/views/PDFView.vue @@ -189,7 +189,9 @@ export default { iframe { width: 100%; height: calc(100vh - var(--header-height)); + height: calc(100dvh - var(--header-height)); margin-top: var(--header-height); + top: calc(var(--header-height) * -1); position: absolute; } From e75fcfc1a4fb196409171172216e5632a5b74d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8F=E3=82=8D=E3=81=AD=E3=81=93?= <290997+orangkucing@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:21:00 +0900 Subject: [PATCH 2/2] Update PDFView.vue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: くろねこ <290997+orangkucing@users.noreply.github.com> --- src/views/PDFView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/PDFView.vue b/src/views/PDFView.vue index 15d37934..90d33a3c 100644 --- a/src/views/PDFView.vue +++ b/src/views/PDFView.vue @@ -52,9 +52,9 @@ export default { if (isPublicPage() && isPdf()) { // Force style for public shares of a single PDF file, as there are // no CSS selectors that could be used only for that case. - this.$refs.iframe.style.height = '100%' - this.$refs.iframe.style.position = 'absolute' - this.$refs.iframe.style.marginTop = 'unset' + //this.$refs.iframe.style.height = '100%' + //this.$refs.iframe.style.position = 'absolute' + //this.$refs.iframe.style.marginTop = 'unset' } this.doneLoading()