From d0675cb3916571fffa272b32be86d1e4db9f9093 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Mon, 9 Jan 2023 20:33:21 +0100 Subject: [PATCH] fix: alt button covers audio play button (#911) --- components/status/StatusAttachment.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/components/status/StatusAttachment.vue b/components/status/StatusAttachment.vue index 3a23625d..cf527d09 100644 --- a/components/status/StatusAttachment.vue +++ b/components/status/StatusAttachment.vue @@ -63,6 +63,7 @@ const type = $computed(() => { const video = ref() const prefersReducedMotion = usePreferredReducedMotion() +const isAudio = $computed(() => attachment.type === 'audio') useIntersectionObserver(video, (entries) => { const ready = video.value?.dataset.ready === 'true' @@ -87,7 +88,7 @@ useIntersectionObserver(video, (entries) => { -
+
-