aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdPdfViewer.vue
diff options
context:
space:
mode:
authorpacien2020-05-19 21:04:50 +0200
committerNotkea2020-05-22 01:02:18 +0200
commit037db071d42d4a7fdb8ed5cf88bc2c37fba4ae93 (patch)
tree926610765ed94d88f6f0642ec18e548c70808b44 /viewer/src/components/LdPdfViewer.vue
parent226e0beb50061844470bd8a717a74307b975bd96 (diff)
downloadldgallery-037db071d42d4a7fdb8ed5cf88bc2c37fba4ae93.tar.gz
viewer/css/global: factorise util classes
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>