diff options
Diffstat (limited to 'viewer/src/components/LdThumbnail.vue')
-rw-r--r-- | viewer/src/components/LdThumbnail.vue | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/viewer/src/components/LdThumbnail.vue b/viewer/src/components/LdThumbnail.vue index 5b1bc82..4623b44 100644 --- a/viewer/src/components/LdThumbnail.vue +++ b/viewer/src/components/LdThumbnail.vue | |||
@@ -18,7 +18,7 @@ | |||
18 | --> | 18 | --> |
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <div :class="{ preload: loading }"> | 21 | <div :class="{ [$style.preload]: loading }"> |
22 | <v-lazy-image | 22 | <v-lazy-image |
23 | v-if="item.thumbnail" | 23 | v-if="item.thumbnail" |
24 | :src="pictureSrc(item.thumbnail.resource)" | 24 | :src="pictureSrc(item.thumbnail.resource)" |
@@ -27,7 +27,7 @@ | |||
27 | @intersect="loading = true" | 27 | @intersect="loading = true" |
28 | @load="loading = false" | 28 | @load="loading = false" |
29 | /> | 29 | /> |
30 | <div v-else class="thumbnail-other flex-column flex-center"> | 30 | <div v-else class="flex-column flex-center" :class="$style.thumbnailOther"> |
31 | <div> | 31 | <div> |
32 | <fa-icon :icon="icon" size="4x" /> | 32 | <fa-icon :icon="icon" size="4x" /> |
33 | </div> | 33 | </div> |
@@ -37,12 +37,13 @@ | |||
37 | </template> | 37 | </template> |
38 | 38 | ||
39 | <script lang="ts"> | 39 | <script lang="ts"> |
40 | import { Component, Vue, Prop } from "vue-property-decorator"; | 40 | import { Item } from "@/@types/gallery"; |
41 | import Navigation from "@/services/navigation"; | 41 | import Navigation from "@/services/navigation"; |
42 | import { Component, Prop, Vue } from "vue-property-decorator"; | ||
42 | 43 | ||
43 | @Component | 44 | @Component |
44 | export default class LdThumbnail extends Vue { | 45 | export default class LdThumbnail extends Vue { |
45 | @Prop({ required: true }) readonly item!: Gallery.Item; | 46 | @Prop({ required: true }) readonly item!: Item; |
46 | 47 | ||
47 | loading: boolean = false; | 48 | loading: boolean = false; |
48 | 49 | ||
@@ -61,10 +62,10 @@ export default class LdThumbnail extends Vue { | |||
61 | } | 62 | } |
62 | </script> | 63 | </script> |
63 | 64 | ||
64 | <style lang="scss"> | 65 | <style lang="scss" module> |
65 | @import "~@/assets/scss/theme.scss"; | 66 | @import "~@/assets/scss/theme.scss"; |
66 | 67 | ||
67 | .thumbnail-other { | 68 | .thumbnailOther { |
68 | width: $thumbnail-other-size; | 69 | width: $thumbnail-other-size; |
69 | height: $thumbnail-other-size; | 70 | height: $thumbnail-other-size; |
70 | padding-top: $body-line-height * 1em; | 71 | padding-top: $body-line-height * 1em; |