aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdPdfViewer.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/components/LdPdfViewer.vue')
-rw-r--r--viewer/src/components/LdPdfViewer.vue10
1 files changed, 3 insertions, 7 deletions
diff --git a/viewer/src/components/LdPdfViewer.vue b/viewer/src/components/LdPdfViewer.vue
index 78ff3d2..20055cc 100644
--- a/viewer/src/components/LdPdfViewer.vue
+++ b/viewer/src/components/LdPdfViewer.vue
@@ -20,9 +20,9 @@
20 20
21<template> 21<template>
22 <!-- intermediate container necessary to eliminate the double scrollbar --> 22 <!-- intermediate container necessary to eliminate the double scrollbar -->
23 <div :class="$style.container"> 23 <div class="fill no-scroll">
24 <!-- prefer native browser PDF viewer if available --> 24 <!-- prefer native browser PDF viewer if available -->
25 <object :class="$style.content" :data="itemResourceUrl()" type="application/pdf"> 25 <object class="fill" :data="itemResourceUrl()" type="application/pdf">
26 <!-- TODO: fallback to PDF.js (https://github.com/pacien/ldgallery/issues/212) --> 26 <!-- TODO: fallback to PDF.js (https://github.com/pacien/ldgallery/issues/212) -->
27 <ld-download :item="pdfItem" /> 27 <ld-download :item="pdfItem" />
28 </object> 28 </object>
@@ -42,9 +42,5 @@ import { Component, Prop, Vue } from "vue-property-decorator";
42</script> 42</script>
43 43
44<style lang="scss" module> 44<style lang="scss" module>
45.container, .content { 45
46 width: 100%;
47 height: 100%;
48 overflow: hidden;
49}
50</style> 46</style>