From 037db071d42d4a7fdb8ed5cf88bc2c37fba4ae93 Mon Sep 17 00:00:00 2001
From: pacien
Date: Tue, 19 May 2020 21:04:50 +0200
Subject: viewer/css/global: factorise util classes

---
 viewer/src/components/LdPlainTextViewer.vue | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

(limited to 'viewer/src/components/LdPlainTextViewer.vue')

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 @@
 
 <template>
   <!-- Outer div necessary for the resize handle to appear on Firefox. -->
-  <div :class="$style.content">
+  <div :class="$style.content" class="fill">
     <!-- Using an iframe here to let the browser deal with content encoding detection. -->
-    <iframe :src="itemResourceUrl()" />
+    <iframe class="fill" :src="itemResourceUrl()" />
   </div>
 </template>
 
@@ -41,8 +41,6 @@ import { Component, Prop, Vue } from "vue-property-decorator";
 <style lang="scss" module>
 .content {
   margin: auto; // Old-school horizontal centering.
-  width: 100%;
-  height: 100%;
 
   // Allow the user to adjust the width of the text view for easier column reading.
   resize: horizontal;
@@ -52,10 +50,5 @@ import { Component, Prop, Vue } from "vue-property-decorator";
 
   // Re-normalise page colour.
   background-color: white;
-
-  & > iframe {
-    width: 100%;
-    height: 100%;
-  }
 }
 </style>
-- 
cgit v1.2.3

