浏览代码

Fix video in media modal not displaying properly

Tusooa Zhu 3 年之前
父节点
当前提交
1128cc463c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/media_modal/media_modal.vue

+ 1 - 1
src/components/media_modal/media_modal.vue

@@ -5,6 +5,7 @@
     @backdropClicked="hide"
   >
     <SwipeClick
+      v-if="type === 'image'"
       class="modal-image-container"
       :direction="swipeDirection"
       :threshold="swipeThreshold"
@@ -23,7 +24,6 @@
         :reset-to-min-scale-limit="pinchZoomScaleResetLimit"
       >
         <img
-          v-if="type === 'image'"
           :class="{ loading }"
           class="modal-image"
           :src="currentMedia.url"