set pdf width on large device

This commit is contained in:
10G Meow 2025-11-03 16:49:31 +02:00
parent 9d43515067
commit 705d38456a

View file

@ -25,6 +25,7 @@
v-if="pageVisibility[pageNum]"
:source="doc"
:page="pageNum"
:width="!util.isMobileOrTabletBrowser() ? 800 : undefined"
/>
</div>
</div>
@ -46,6 +47,7 @@ import { Attachment } from "../../models/attachment";
import ImageWithProgress from "../ImageWithProgress.vue";
import VuePdfEmbed, { useVuePdfEmbed } from 'vue-pdf-embed';
import { Source } from 'vue-pdf-embed/types';
import util from "@/plugins/utils";
function isEventAttachment(source: EventAttachment | Attachment | undefined): source is EventAttachment {
return (source as EventAttachment)?.event !== undefined;
@ -250,8 +252,7 @@ onBeforeUnmount(() => {
}
.pdf-container {
padding: 24px 16px;
margin-top: 200px;
margin-top: 100px;
height: 100vh;
& > * {