Prevent repeated description for alt+figcaption

This commit is contained in:
Lim Chee Aun 2023-09-19 00:45:43 +08:00
parent f7ffce1b46
commit fe80215325

View file

@ -328,7 +328,7 @@ function Media({ media, to, showOriginal, autoAnimate, onClick = () => {} }) {
<>
<img
src={previewUrl}
alt={description}
alt={showInlineDesc ? '' : description}
width={width}
height={height}
data-orientation={orientation}