diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index 194800d52..3478766d2 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/app/javascript/flavours/glitch/components/media_gallery.js @@ -354,19 +354,33 @@ export default class MediaGallery extends React.PureComponent { ); } + let descriptions; + descriptions = media.take(4).map( + (attachment, i) => { + if (attachment.get('description')) + return

Attachment {1+i}: {attachment.get('description')}

+ } + ); + return ( -
-
- {spoilerButton} - {visible && sensitive && ( - - - - )} + +
+
+ {spoilerButton} + {visible && sensitive && ( + + + + )} +
+ + {children}
- {children} -
+
+ {descriptions} +
+ ); }