diff options
Diffstat (limited to 'viewer/src/components/LdPlainTextViewer.vue')
-rw-r--r-- | viewer/src/components/LdPlainTextViewer.vue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/viewer/src/components/LdPlainTextViewer.vue b/viewer/src/components/LdPlainTextViewer.vue index 101fd4c..5c32470 100644 --- a/viewer/src/components/LdPlainTextViewer.vue +++ b/viewer/src/components/LdPlainTextViewer.vue | |||
@@ -22,17 +22,18 @@ | |||
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" class="fill"> | 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 class="fill" :src="itemResourceUrl()" /> | 25 | <iframe class="fill" :src="itemResourceUrl" /> |
26 | </div> | 26 | </div> |
27 | </template> | 27 | </template> |
28 | 28 | ||
29 | <script lang="ts"> | 29 | <script lang="ts"> |
30 | import { Component, Prop, Vue } from "vue-property-decorator"; | 30 | import { Component, Prop, Vue } from "vue-property-decorator"; |
31 | 31 | ||
32 | @Component export default class LdPlainTextViewer extends Vue { | 32 | @Component |
33 | export default class LdPlainTextViewer extends Vue { | ||
33 | @Prop({ required: true }) readonly plainTextItem!: Gallery.PlainText; | 34 | @Prop({ required: true }) readonly plainTextItem!: Gallery.PlainText; |
34 | 35 | ||
35 | itemResourceUrl(): string { | 36 | get itemResourceUrl(): string { |
36 | return this.$galleryStore.resourceRoot + this.plainTextItem.properties.resource; | 37 | return this.$galleryStore.resourceRoot + this.plainTextItem.properties.resource; |
37 | } | 38 | } |
38 | } | 39 | } |
@@ -46,7 +47,7 @@ import { Component, Prop, Vue } from "vue-property-decorator"; | |||
46 | resize: horizontal; | 47 | resize: horizontal; |
47 | max-width: 100%; // Forbid overflow when resizing. | 48 | max-width: 100%; // Forbid overflow when resizing. |
48 | overflow: hidden; // Necessary for the resize handle to be shown in Chromium. | 49 | overflow: hidden; // Necessary for the resize handle to be shown in Chromium. |
49 | padding: .5em; // Necessary for the resize handle to be selectable on qutebrowser. | 50 | padding: 0.5em; // Necessary for the resize handle to be selectable on qutebrowser. |
50 | 51 | ||
51 | // Re-normalise page colour. | 52 | // Re-normalise page colour. |
52 | background-color: white; | 53 | background-color: white; |