Skip to content

Commit 2373bc2

Browse files
nfebenextcloud-command
authored andcommitted
Use proper alt text for viewer app modal
Alt text should contain readable text without encodings and other string markers such as "Content of". Signed-off-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 0918b20 commit 2373bc2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

js/viewer-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/viewer-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Images.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export default {
9898
return Math.round(this.width * this.zoomRatio)
9999
},
100100
alt() {
101-
const fileName = basename(this.src)
102-
return t('viewer', 'Content of "{fileName}"', { fileName })
101+
const fileName = this.basename
102+
return t('viewer', '"{fileName}"', { fileName })
103103
},
104104
},
105105

0 commit comments

Comments
 (0)