image max width

This commit is contained in:
ThatOneCalculator 2022-11-06 13:56:51 -08:00
parent 960d99dfea
commit f95ca12cff
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<div v-if="!message.isDeleted" class="content"> <div v-if="!message.isDeleted" class="content">
<Mfm v-if="message.text" ref="text" class="text" :text="message.text" :i="$i"/> <Mfm v-if="message.text" ref="text" class="text" :text="message.text" :i="$i"/>
<div v-if="message.file" class="file"> <div v-if="message.file" class="file">
<img v-if="message.file.type.split('/')[0] == 'image'" :src="message.file.url" :alt="message.file.name"/> <img v-if="message.file.type.split('/')[0] == 'image'" :src="message.file.url" :alt="message.file.name" max-width="400px" style="border-radius: 5px"/>
<VuePlyr v-else-if="message.file.type.split('/')[0] == 'video'"> <VuePlyr v-else-if="message.file.type.split('/')[0] == 'video'">
<video <video
:alt="message.file.name" :alt="message.file.name"