feat: option to hide alt indicator closes #1410

This commit is contained in:
Evan Boehs 2023-02-03 12:12:48 -05:00 committed by patak
parent 87496e01af
commit 4a74b16d24
4 changed files with 12 additions and 1 deletions

View file

@ -87,6 +87,8 @@ useIntersectionObserver(video, (entries) => {
}
})
}, { threshold: 0.75 })
const userSettings = useUserSettings()
</script>
<template>
@ -167,7 +169,7 @@ useIntersectionObserver(video, (entries) => {
/>
</button>
</template>
<div v-if="attachment.description" :class="isAudio ? '' : 'absolute left-2 bottom-2'">
<div v-if="attachment.description && !getPreferences(userSettings, 'hideAltIndicatorOnPosts')" :class="isAudio ? '' : 'absolute left-2 bottom-2'">
<VDropdown :distance="6" placement="bottom-start">
<button
font-bold text-sm