From dfa1c6e2f2977c32f75c1d93d9e7eb44fbed28c0 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Sun, 4 Jul 2021 02:22:39 +0200
Subject: viewer: use CSS modules

GitHub: closes #196
---
 viewer/src/components/LdThumbnail.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'viewer/src/components/LdThumbnail.vue')

diff --git a/viewer/src/components/LdThumbnail.vue b/viewer/src/components/LdThumbnail.vue
index 3f67a43..4623b44 100644
--- a/viewer/src/components/LdThumbnail.vue
+++ b/viewer/src/components/LdThumbnail.vue
@@ -18,7 +18,7 @@
 -->
 
 <template>
-  <div :class="{ preload: loading }">
+  <div :class="{ [$style.preload]: loading }">
     <v-lazy-image
       v-if="item.thumbnail"
       :src="pictureSrc(item.thumbnail.resource)"
@@ -27,7 +27,7 @@
       @intersect="loading = true"
       @load="loading = false"
     />
-    <div v-else class="thumbnail-other flex-column flex-center">
+    <div v-else class="flex-column flex-center" :class="$style.thumbnailOther">
       <div>
         <fa-icon :icon="icon" size="4x" />
       </div>
@@ -62,10 +62,10 @@ export default class LdThumbnail extends Vue {
 }
 </script>
 
-<style lang="scss">
+<style lang="scss" module>
 @import "~@/assets/scss/theme.scss";
 
-.thumbnail-other {
+.thumbnailOther {
   width: $thumbnail-other-size;
   height: $thumbnail-other-size;
   padding-top: $body-line-height * 1em;
-- 
cgit v1.2.3

