set pdf width on large device
This commit is contained in:
parent
9d43515067
commit
705d38456a
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
& > * {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue