@@ -45,7 +45,13 @@ export default class LdThumbnail extends Vue {
loading: boolean = false;
pictureSrc() {
- if (this.item.thumbnail) return `${process.env.VUE_APP_DATA_URL}${this.item.thumbnail.resource}`;
+ const resource = this.item.thumbnail!.resource;
+ return `${process.env.VUE_APP_DATA_URL}${resource}`;
+ }
+
+ pictureStyle() {
+ const resolution = this.item.thumbnail!.resolution;
+ return { width: `${resolution.width}px`, height: `${resolution.height}px` };
}
getIcon() {
@@ -57,10 +63,6 @@ export default class LdThumbnail extends Vue {
--
cgit v1.2.3
From abcd10f8ac944f29a77d756558b1773551ee0877 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Tue, 11 Feb 2020 02:06:49 +0100
Subject: viewer: thumbnail others fixed sizes for better layout
---
viewer/src/components/LdThumbnail.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
(limited to 'viewer/src/components/LdThumbnail.vue')
diff --git a/viewer/src/components/LdThumbnail.vue b/viewer/src/components/LdThumbnail.vue
index d5c0b3c..17c7659 100644
--- a/viewer/src/components/LdThumbnail.vue
+++ b/viewer/src/components/LdThumbnail.vue
@@ -27,7 +27,7 @@
@intersect="loading=true"
@load="loading=false"
/>
-
+
{{item.title}}
@@ -63,6 +63,12 @@ export default class LdThumbnail extends Vue {