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)
|
||||
},
|
||||
videoTag () {
|
||||
return this.useModal ? 'button' : 'span'
|
||||
},
|
||||
...mapGetters(['mergedConfig'])
|
||||
},
|
||||
watch: {
|
||||
|
|
|
@ -127,9 +127,11 @@
|
|||
/>
|
||||
</a>
|
||||
|
||||
<span
|
||||
<component
|
||||
:is="videoTag"
|
||||
v-if="type === 'video' && !hidden"
|
||||
class="video-container"
|
||||
:class="{ 'button-unstyled': 'isModal' }"
|
||||
:href="attachment.url"
|
||||
@click.stop.prevent="openModal"
|
||||
>
|
||||
|
@ -145,7 +147,7 @@
|
|||
class="play-icon"
|
||||
icon="play-circle"
|
||||
/>
|
||||
</span>
|
||||
</component>
|
||||
|
||||
<span
|
||||
v-if="type === 'audio' && !hidden"
|
||||
|
|
Loading…
Reference in a new issue