aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdPlainTextViewer.vue
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/components/LdPlainTextViewer.vue')
-rw-r--r--viewer/src/components/LdPlainTextViewer.vue11
1 files changed, 2 insertions, 9 deletions
diff --git a/viewer/src/components/LdPlainTextViewer.vue b/viewer/src/components/LdPlainTextViewer.vue
index 1dbd351..101fd4c 100644
--- a/viewer/src/components/LdPlainTextViewer.vue
+++ b/viewer/src/components/LdPlainTextViewer.vue
@@ -20,9 +20,9 @@
20 20
21<template> 21<template>
22 <!-- Outer div necessary for the resize handle to appear on Firefox. --> 22 <!-- Outer div necessary for the resize handle to appear on Firefox. -->
23 <div :class="$style.content"> 23 <div :class="$style.content" class="fill">
24 <!-- Using an iframe here to let the browser deal with content encoding detection. --> 24 <!-- Using an iframe here to let the browser deal with content encoding detection. -->
25 <iframe :src="itemResourceUrl()" /> 25 <iframe class="fill" :src="itemResourceUrl()" />
26 </div> 26 </div>
27</template> 27</template>
28 28
@@ -41,8 +41,6 @@ import { Component, Prop, Vue } from "vue-property-decorator";
41<style lang="scss" module> 41<style lang="scss" module>
42.content { 42.content {
43 margin: auto; // Old-school horizontal centering. 43 margin: auto; // Old-school horizontal centering.
44 width: 100%;
45 height: 100%;
46 44
47 // Allow the user to adjust the width of the text view for easier column reading. 45 // Allow the user to adjust the width of the text view for easier column reading.
48 resize: horizontal; 46 resize: horizontal;
@@ -52,10 +50,5 @@ import { Component, Prop, Vue } from "vue-property-decorator";
52 50
53 // Re-normalise page colour. 51 // Re-normalise page colour.
54 background-color: white; 52 background-color: white;
55
56 & > iframe {
57 width: 100%;
58 height: 100%;
59 }
60} 53}
61</style> 54</style>