diff options
Diffstat (limited to 'viewer/src/components/LdGallery.vue')
-rw-r--r-- | viewer/src/components/LdGallery.vue | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/viewer/src/components/LdGallery.vue b/viewer/src/components/LdGallery.vue index edd479c..e567e7c 100644 --- a/viewer/src/components/LdGallery.vue +++ b/viewer/src/components/LdGallery.vue | |||
@@ -19,7 +19,7 @@ | |||
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <ld-error v-if="hasNoResults" icon="search" :message="noresult" /> | 21 | <ld-error v-if="hasNoResults" icon="search" :message="noresult" /> |
22 | <div v-else class="thumbnail-tiles"> | 22 | <div v-else :class="$style.thumbnailTiles"> |
23 | <router-link v-for="item in sortedItems" :key="item.path" :to="item.path"> | 23 | <router-link v-for="item in sortedItems" :key="item.path" :to="item.path"> |
24 | <ld-thumbnail :item="item" /> | 24 | <ld-thumbnail :item="item" /> |
25 | </router-link> | 25 | </router-link> |
@@ -27,12 +27,12 @@ | |||
27 | </template> | 27 | </template> |
28 | 28 | ||
29 | <script lang="ts"> | 29 | <script lang="ts"> |
30 | import { Component, Vue, Prop, Model } from "vue-property-decorator"; | 30 | import { Item } from "@/@types/gallery"; |
31 | import DragScrollClickFix from "@/services/dragscrollclickfix"; | 31 | import { Component, Prop, Vue } from "vue-property-decorator"; |
32 | 32 | ||
33 | @Component | 33 | @Component |
34 | export default class LdPicture extends Vue { | 34 | export default class LdPicture extends Vue { |
35 | @Prop({ type: Array, required: true }) readonly items!: Gallery.Item[]; | 35 | @Prop({ type: Array, required: true }) readonly items!: Item[]; |
36 | @Prop(String) readonly noresult?: string; | 36 | @Prop(String) readonly noresult?: string; |
37 | 37 | ||
38 | get sortedItems() { | 38 | get sortedItems() { |
@@ -45,8 +45,8 @@ export default class LdPicture extends Vue { | |||
45 | } | 45 | } |
46 | </script> | 46 | </script> |
47 | 47 | ||
48 | <style lang="scss"> | 48 | <style lang="scss" module> |
49 | .thumbnail-tiles { | 49 | .thumbnailTiles { |
50 | display: flex; | 50 | display: flex; |
51 | flex-wrap: wrap; | 51 | flex-wrap: wrap; |
52 | align-items: center; | 52 | align-items: center; |