MediaGallery: fix "Show content" button

This commit is contained in:
Alex Gleason 2022-10-03 10:10:31 -05:00
parent cc3e8ebd3b
commit ca9abf3e5a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -573,6 +573,10 @@ const MediaGallery: React.FC<IMediaGallery> = (props) => {
}
}, [node.current]);
useEffect(() => {
setVisible(!!props.visible);
}, [props.visible]);
return (
<div className={classNames('media-gallery', { 'media-gallery--compact': compact })} style={sizeData.style} ref={node}>
<div