Skip to content

Commit 29a3538

Browse files
committed
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>
1 parent 0918b20 commit 29a3538

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Images.vue

+2-2
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)