We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a10ec commit 084efaeCopy full SHA for 084efae
src/ChatWindow/Message/MessageImage.vue
@@ -11,7 +11,7 @@
11
isImageLoading && message.senderId === currentUserId
12
}"
13
:style="{
14
- 'background-image': `url('${isImageLoading ? message.file.preview || message.file.url : message.file.url}')`,
+ 'background-image': `url('${imageBackground}')`,
15
'max-height': `${imageResponsive.maxHeight}px`
16
17
>
@@ -82,6 +82,11 @@ export default {
82
return (
83
this.message.file.url.indexOf('blob:http') !== -1 || this.imageLoading
84
)
85
+ },
86
+ imageBackground() {
87
+ return this.isImageLoading
88
+ ? this.message.file.preview || this.message.file.url
89
+ : this.message.file.url
90
}
91
},
92
0 commit comments