close #318 fix image size in image viewer

This commit is contained in:
nasum 2018-05-20 23:33:38 +09:00
parent ee196e9081
commit 447084b32e
1 changed files with 6 additions and 9 deletions

View File

@ -1,8 +1,6 @@
<template>
<div class="media">
<img :src="src" v-if="isImageFile()">
<video :src="src" v-else-if="isMovieFile()" controls></video>
</div>
<img :src="src" v-if="isImageFile()">
<video :src="src" v-else-if="isMovieFile()" controls></video>
</template>
<script>
@ -25,11 +23,10 @@ export default {
</script>
<style lang="scss" scoped>
.media {
img, video {
max-width: 80%;
max-height: 80%;
}
img,
video {
max-width: 80%;
max-height: 80%;
}
</style>