From 1f752e65edfa55ae3f4c82456dc0aed2a0ac389c Mon Sep 17 00:00:00 2001 From: Alex <49969959+alexzhang1030@users.noreply.github.com> Date: Fri, 24 Nov 2023 02:19:53 -0600 Subject: [PATCH] fix: move the ALT text button for video attahcments to the top (#2479) --- components/status/StatusAttachment.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/status/StatusAttachment.vue b/components/status/StatusAttachment.vue index 39c56f4a..fc070d7b 100644 --- a/components/status/StatusAttachment.vue +++ b/components/status/StatusAttachment.vue @@ -67,6 +67,7 @@ const type = $computed(() => { const video = ref() const prefersReducedMotion = usePreferredReducedMotion() const isAudio = $computed(() => attachment.type === 'audio') +const isVideo = $computed(() => attachment.type === 'video') const enableAutoplay = usePreferences('enableAutoplay') @@ -246,7 +247,12 @@ watch(shouldLoadAttachment, () => { /> -
+