logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 299c00cf74fbef8b8b597330b8c0e6e28765ab7e
parent 07c12ae16273498209ce557b59ea610e40365ad9
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 15 Aug 2021 18:35:26 +0300

fix video attachments in notifications not having pointer cursor

Diffstat:

Msrc/components/attachment/attachment.js3+++
Msrc/components/attachment/attachment.vue6++++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js @@ -118,6 +118,9 @@ const Attachment = { } return modalTypes.includes(this.type) }, + videoTag () { + return this.useModal ? 'button' : 'span' + }, ...mapGetters(['mergedConfig']) }, watch: { diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue @@ -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"