Skip to content
Snippets Groups Projects
Commit 62a5793e authored by S Kopper's avatar S Kopper
Browse files

fix: don't show filename as alt text

parent 2f5c51c1
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<audio
ref="audioEl"
:src="media.url"
:title="media.name"
:title="media.comment ?? undefined"
controls
preload="metadata"
/>
......
......@@ -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"
......
......@@ -156,8 +156,8 @@ onMounted(() => {
[itemData.w, itemData.h] = [itemData.h, itemData.w];
}
itemData.msrc = file.thumbnailUrl;
itemData.alt = file.comment ?? file.name;
itemData.comment = file.comment ?? file.name;
itemData.alt = file.comment ?? undefined;
itemData.comment = file.comment;
itemData.thumbCropped = true;
});
......
......@@ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only
ref="videoEl"
:class="$style.video"
:poster="video.thumbnailUrl"
:title="video.comment"
:title="video.comment ?? undefined"
:alt="video.comment"
preload="none"
controls
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment