From fe80215325b9fe1b9b8b9a153fa0bf71a45d1e37 Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Tue, 19 Sep 2023 00:45:43 +0800
Subject: [PATCH] Prevent repeated description for alt+figcaption

---
 src/components/media.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/media.jsx b/src/components/media.jsx
index 943db1e0..c661757b 100644
--- a/src/components/media.jsx
+++ b/src/components/media.jsx
@@ -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}