aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-08-06 22:41:27 -0400
committertaehoon <th.dev91@gmail.com>2019-08-06 22:41:27 -0400
commit4d54c67daaedd137ea63a1ff4dc8a551cc927bb2 (patch)
treea57884d8c198cca656bd41e7271b304a45f2b9e7
parent17dc7357d5036681b346f745190204e213c0ef8c (diff)
make size of gif image and preview equal
-rw-r--r--src/components/gallery/gallery.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/gallery/gallery.vue b/src/components/gallery/gallery.vue
index 6adfb76c..6169d294 100644
--- a/src/components/gallery/gallery.vue
+++ b/src/components/gallery/gallery.vue
@@ -61,13 +61,17 @@
}
&.contain-fit {
- img, video {
+ img,
+ video,
+ canvas {
object-fit: contain;
}
}
&.cover-fit {
- img, video {
+ img,
+ video,
+ canvas {
object-fit: cover;
}
}