From 4d54c67daaedd137ea63a1ff4dc8a551cc927bb2 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 6 Aug 2019 22:41:27 -0400
Subject: [PATCH] make size of gif image and preview equal
---
src/components/gallery/gallery.vue | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/components/gallery/gallery.vue b/src/components/gallery/gallery.vue
index 6adfb76c19..6169d29424 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;
}
}