image max width

This commit is contained in:
ThatOneCalculator 2022-11-06 13:56:51 -08:00
parent cdf4eafd35
commit 78ea2b926e

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"