mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-30 00:55:20 +01:00
Merge pull request #322 from nasum/iss-318
close #318 fix image size in image viewer
This commit is contained in:
commit
adf6c83d61
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user