forked from AkkomaGang/akkoma-fe
fix video attachments in notifications not having pointer cursor
This commit is contained in:
parent
07c12ae162
commit
299c00cf74
2 changed files with 7 additions and 2 deletions
|
@ -118,6 +118,9 @@ const Attachment = {
|
||||||
}
|
}
|
||||||
return modalTypes.includes(this.type)
|
return modalTypes.includes(this.type)
|
||||||
},
|
},
|
||||||
|
videoTag () {
|
||||||
|
return this.useModal ? 'button' : 'span'
|
||||||
|
},
|
||||||
...mapGetters(['mergedConfig'])
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
@ -127,9 +127,11 @@
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<span
|
<component
|
||||||
|
:is="videoTag"
|
||||||
v-if="type === 'video' && !hidden"
|
v-if="type === 'video' && !hidden"
|
||||||
class="video-container"
|
class="video-container"
|
||||||
|
:class="{ 'button-unstyled': 'isModal' }"
|
||||||
:href="attachment.url"
|
:href="attachment.url"
|
||||||
@click.stop.prevent="openModal"
|
@click.stop.prevent="openModal"
|
||||||
>
|
>
|
||||||
|
@ -145,7 +147,7 @@
|
||||||
class="play-icon"
|
class="play-icon"
|
||||||
icon="play-circle"
|
icon="play-circle"
|
||||||
/>
|
/>
|
||||||
</span>
|
</component>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
v-if="type === 'audio' && !hidden"
|
v-if="type === 'audio' && !hidden"
|
||||||
|
|
Loading…
Reference in a new issue