fix chat message

This commit is contained in:
ThatOneCalculator 2022-11-13 13:00:57 -08:00
parent c70dc36e37
commit 4491e0ba21
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.12.14",
"version": "12.119.0-calc.12.15",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -9,7 +9,8 @@
<div v-if="!message.isDeleted" class="content">
<Mfm v-if="message.text" ref="text" class="text" :text="message.text" :i="$i"/>
</div>
<div v-if="message.file" class="file">
<br/>
<div v-if="message.file" class="file" width="400px">
<XMediaList v-if="message.file.type.split('/')[0] == 'image' || message.file.type.split('/')[0] == 'video'" :media-list="[message.file]" max-width="400px" style="border-radius: 5px"/>
<a v-else :href="message.file.url" rel="noopener" target="_blank" :title="message.file.name">
<p>{{ message.file.name }}</p>