diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-02 21:46:10 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-02 21:46:10 -0600 |
commit | 29c54ac59b15cf643ac30e7178642e0aa6b6aac8 (patch) | |
tree | 43f7c54cd40608267a8de749030ec269b1814987 | |
parent | e14a7b0c362dd6c388101b9b1acad0a6ff5b71aa (diff) |
hide media captions under content notes when not expanded
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 8 |
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> ); } |