1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00

fix(a11y): use Image as alt when there isn't a description

This commit is contained in:
patak 2022-12-30 23:52:32 +01:00
parent 4da2fd05bb
commit 943a0b66fe

View File

@ -139,7 +139,7 @@ useIntersectionObserver(video, (entries) => {
:srcset="srcset"
:width="attachment.meta?.original?.width"
:height="attachment.meta?.original?.height"
:alt="attachment.description!"
:alt="attachment.description ?? 'Image'"
:style="{
aspectRatio,
objectPosition,