mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
fix: 🐛 fix videos having <a>
This commit is contained in:
parent
240a905691
commit
f8caba737e
2 changed files with 15 additions and 15 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "12.118.1-calc.9.5",
|
"version": "12.118.1-calc.9.6",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -9,21 +9,21 @@
|
||||||
<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">
|
||||||
<a :href="message.file.url" rel="noopener" target="_blank" :title="message.file.name">
|
<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"/>
|
<VuePlyr v-else-if="message.file.type.split('/')[0] == 'video'">
|
||||||
<VuePlyr v-if="message.file.type.split('/')[0] == 'video'">
|
<video
|
||||||
<video
|
:alt="message.file.name"
|
||||||
:alt="message.file.name"
|
preload="none"
|
||||||
preload="none"
|
controls
|
||||||
controls
|
@contextmenu.stop
|
||||||
@contextmenu.stop
|
>
|
||||||
|
<source
|
||||||
|
:src="message.file.url"
|
||||||
>
|
>
|
||||||
<source
|
</video>
|
||||||
:src="message.file.url"
|
</VuePlyr>
|
||||||
>
|
<a v-else :href="message.file.url" rel="noopener" target="_blank" :title="message.file.name">
|
||||||
</video>
|
<p>{{ message.file.name }}</p>
|
||||||
</VuePlyr>
|
|
||||||
<p v-else>{{ message.file.name }}</p>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue