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