diff options
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/components/item_handlers/LdMarkdownViewer.vue | 14 | ||||
-rw-r--r-- | viewer/src/views/SplashScreen.vue | 1 |
2 files changed, 5 insertions, 10 deletions
diff --git a/viewer/src/components/item_handlers/LdMarkdownViewer.vue b/viewer/src/components/item_handlers/LdMarkdownViewer.vue index ecebbcf..3b9a8d6 100644 --- a/viewer/src/components/item_handlers/LdMarkdownViewer.vue +++ b/viewer/src/components/item_handlers/LdMarkdownViewer.vue | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | <template> | 21 | <template> |
22 | <b-loading v-if="isLoading" active /> | 22 | <b-loading v-if="isLoading" active /> |
23 | <Markdown v-else-if="markdown" class="flex-grow-1" :markdown="markdown" /> | 23 | <Markdown v-else-if="markdown" :class="$style.container" :markdown="markdown" /> |
24 | </template> | 24 | </template> |
25 | 25 | ||
26 | <script lang="ts"> | 26 | <script lang="ts"> |
@@ -48,6 +48,7 @@ export default class LdMarkdownViewer extends Vue { | |||
48 | return this.$galleryStore.resourceRoot + this.item.properties.resource; | 48 | return this.$galleryStore.resourceRoot + this.item.properties.resource; |
49 | } | 49 | } |
50 | 50 | ||
51 | // TODO: Identical to SplashScreen.vue, use composition with Vue3. | ||
51 | fetchMarkdown() { | 52 | fetchMarkdown() { |
52 | FetchWithCheck.get(this.itemResourceUrl) | 53 | FetchWithCheck.get(this.itemResourceUrl) |
53 | .then(response => response.text()) | 54 | .then(response => response.text()) |
@@ -69,14 +70,7 @@ export default class LdMarkdownViewer extends Vue { | |||
69 | </script> | 70 | </script> |
70 | 71 | ||
71 | <style lang="scss" module> | 72 | <style lang="scss" module> |
72 | .splashscreen { | 73 | .container { |
73 | display: flex; | 74 | padding: 8px; |
74 | flex-flow: column; | ||
75 | align-items: center; | ||
76 | padding: 32px; | ||
77 | } | ||
78 | .buttonOkay { | ||
79 | min-width: 310px; | ||
80 | align-self: center; | ||
81 | } | 75 | } |
82 | </style> | 76 | </style> |
diff --git a/viewer/src/views/SplashScreen.vue b/viewer/src/views/SplashScreen.vue index dcb845d..93d84a1 100644 --- a/viewer/src/views/SplashScreen.vue +++ b/viewer/src/views/SplashScreen.vue | |||
@@ -30,6 +30,7 @@ export default class SplashScreen extends Vue { | |||
30 | this.fetchMarkdown(); | 30 | this.fetchMarkdown(); |
31 | } | 31 | } |
32 | 32 | ||
33 | // TODO: Identical to LdMarkdownViewer.vue, use composition with Vue3. | ||
33 | fetchMarkdown() { | 34 | fetchMarkdown() { |
34 | FetchWithCheck.get(`${process.env.VUE_APP_DATA_URL}${this.config.resource}?${this.config.acknowledgmentKey ?? ""}`) | 35 | FetchWithCheck.get(`${process.env.VUE_APP_DATA_URL}${this.config.resource}?${this.config.acknowledgmentKey ?? ""}`) |
35 | .then(response => response.text()) | 36 | .then(response => response.text()) |