Redo everything in the MR
This commit is contained in:
parent
8761e039d0
commit
3978aaef84
19 changed files with 563 additions and 92 deletions
|
@ -1,14 +1,13 @@
|
|||
<template>
|
||||
<div class="modal-view" v-if="showing" @click.prevent="hide">
|
||||
<img class="modal-image" v-if="type === 'image'" :src="currentMedia.url"></img>
|
||||
<video
|
||||
<VideoAttachment
|
||||
class="modal-image"
|
||||
v-if="type === 'video'"
|
||||
:src="currentMedia.url"
|
||||
@click.stop=""
|
||||
controls autoplay
|
||||
:loop="loopVideo">
|
||||
</video>
|
||||
:attachment="currentMedia"
|
||||
:controls="true"
|
||||
@click.stop.native="">
|
||||
</VideoAttachment>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -18,7 +17,7 @@
|
|||
@import '../../_variables.scss';
|
||||
|
||||
.modal-view {
|
||||
z-index: 1005;
|
||||
z-index: 1000;
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue