fix: don't show filename as alt text

This commit is contained in:
ShittyKopper 2023-11-27 23:55:43 +03:00
parent 2f5c51c1ca
commit 62a5793e71
4 changed files with 8 additions and 8 deletions

View file

@ -8,10 +8,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<component
:is="disableImageLink ? 'div' : 'a'"
v-bind="disableImageLink ? {
title: image.name,
title: image.comment,
class: $style.imageContainer,
} : {
title: image.name,
title: image.comment,
class: $style.imageContainer,
href: image.url,
style: 'cursor: zoom-in;'
@ -22,8 +22,8 @@ SPDX-License-Identifier: AGPL-3.0-only
:src="(defaultStore.state.dataSaver.media && hide) ? null : url"
:forceBlurhash="hide"
:cover="hide || cover"
:alt="image.comment || image.name"
:title="image.comment || image.name"
:alt="image.comment"
:title="image.comment"
:width="image.properties.width"
:height="image.properties.height"
:style="hide ? 'filter: brightness(0.7);' : null"