Merge branch '228-need-a-full-size-preview-of-images-on-mobile' into 'dev'
implemented image preview in mobile and desktop See merge request keanuapp/keanuapp-weblite!40
This commit is contained in:
commit
e8e56ff668
3 changed files with 23 additions and 5 deletions
|
|
@ -264,6 +264,7 @@ $admin-fg: white;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
max-width: 70%;
|
max-width: 70%;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.bubble.sticker-bubble {
|
.bubble.sticker-bubble {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
|
@ -358,8 +359,9 @@ $admin-fg: white;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
max-width: 70%;
|
max-width: 70%;
|
||||||
.v-image,
|
cursor: pointer;
|
||||||
video {
|
|
||||||
|
.v-image, video {
|
||||||
border-radius: 10px 10px 0 10px;
|
border-radius: 10px 10px 0 10px;
|
||||||
[dir="rtl"] & {
|
[dir="rtl"] & {
|
||||||
border-radius: 10px 10px 10px 0px;
|
border-radius: 10px 10px 10px 0px;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<message-incoming v-bind="{...$props, ...$attrs}" v-on="$listeners">
|
<message-incoming v-bind="{...$props, ...$attrs}" v-on="$listeners">
|
||||||
<div class="bubble image-bubble">
|
<div class="bubble image-bubble">
|
||||||
<v-img
|
<v-img
|
||||||
:aspect-ratio="16 / 9"
|
:aspect-ratio="16 / 9"
|
||||||
ref="image"
|
ref="image"
|
||||||
:src="src"
|
:src="src"
|
||||||
:cover="cover"
|
:cover="cover"
|
||||||
:contain="contain"
|
:contain="contain"
|
||||||
|
@click.stop="dialog = true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</message-incoming>
|
<v-dialog
|
||||||
|
v-model="dialog"
|
||||||
|
:width="$vuetify.breakpoint.smAndUp ? '940px' : '90%'"
|
||||||
|
>
|
||||||
|
<v-img :src="src"/>
|
||||||
|
</v-dialog>
|
||||||
|
</message-incoming>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
@ -24,6 +31,7 @@ export default {
|
||||||
src: null,
|
src: null,
|
||||||
cover: true,
|
cover: true,
|
||||||
contain: false,
|
contain: false,
|
||||||
|
dialog: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,15 @@
|
||||||
:src="src"
|
:src="src"
|
||||||
:cover="cover"
|
:cover="cover"
|
||||||
:contain="contain"
|
:contain="contain"
|
||||||
|
@click.stop="dialog = true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<v-dialog
|
||||||
|
v-model="dialog"
|
||||||
|
:width="$vuetify.breakpoint.smAndUp ? '940px' : '90%'"
|
||||||
|
>
|
||||||
|
<v-img :src="src"/>
|
||||||
|
</v-dialog>
|
||||||
</message-outgoing>
|
</message-outgoing>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -24,6 +31,7 @@ export default {
|
||||||
src: null,
|
src: null,
|
||||||
cover: true,
|
cover: true,
|
||||||
contain: false,
|
contain: false,
|
||||||
|
dialog: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue