From a8388689f3019083f263845900f683ddc13884dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Bono?= Date: Sat, 8 Jun 2024 21:55:46 +0200 Subject: [PATCH] fix: pdf preview header (#3274) --- frontend/src/css/styles.css | 2 +- frontend/src/views/files/Preview.vue | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/css/styles.css b/frontend/src/css/styles.css index 8eed50fc..f8d4ef9d 100644 --- a/frontend/src/css/styles.css +++ b/frontend/src/css/styles.css @@ -269,7 +269,7 @@ main .spinner .bounce2 { #previewer .pdf { width: 100%; height: 100%; - margin-top: 4em; + padding-top: 4em; } #previewer h2.message { diff --git a/frontend/src/views/files/Preview.vue b/frontend/src/views/files/Preview.vue index 879ca69d..3e63768b 100644 --- a/frontend/src/views/files/Preview.vue +++ b/frontend/src/views/files/Preview.vue @@ -6,7 +6,7 @@ @mousemove="toggleNavigation" @touchstart="toggleNavigation" > - + {{ name }} - +
feedback @@ -189,6 +185,8 @@ const raw = computed(() => { return downloadUrl.value; }); +const isPdf = computed(() => fileStore.req?.extension.toLowerCase() == ".pdf"); + const isResizeEnabled = computed(() => resizePreview); const subtitles = computed(() => {