enhance: Alt text in image viewer (#9109)

* Alt text in image viewer

* 🎨

Co-authored-by: tamaina <tamaina@hotmail.co.jp>
This commit is contained in:
nullobsi 2023-01-18 16:16:52 -08:00 committed by GitHub
parent d05ffc0a7c
commit a160b01cff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 2 deletions

View file

@ -13,7 +13,7 @@
:href="image.url"
:title="image.name"
>
<ImgWithBlurhash :hash="image.blurhash" :src="url" :alt="image.comment" :title="image.comment" :cover="false"/>
<ImgWithBlurhash :hash="image.blurhash" :src="url" :alt="image.comment || image.name" :title="image.comment || image.name" :cover="false"/>
<div v-if="image.type === 'image/gif'" class="gif">GIF</div>
</a>
<button v-tooltip="$ts.hide" class="_button hide" @click="hide = true"><i class="ti ti-eye-off"></i></button>