about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/javascript/flavours/glitch/components/media_gallery.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js
index 3398b050a..78bdb861a 100644
--- a/app/javascript/flavours/glitch/components/media_gallery.js
+++ b/app/javascript/flavours/glitch/components/media_gallery.js
@@ -430,9 +430,11 @@ export default class MediaGallery extends React.PureComponent {
           {children}
         </div>
 
-        <div className='media-caption'>
-          {descriptions}
-        </div>
+        {visible && (
+          <div className='media-caption'>
+            {descriptions}
+          </div>
+        )}
       </React.Fragment>
     );
   }