Skip to content

Commit

Permalink
Fix media gallery items having incorrect borders when hidden (mastodo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Oct 4, 2024
1 parent 1f72036 commit 51769e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/mastodon/components/media_gallery.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ class MediaGallery extends PureComponent {

return (
<div className={`media-gallery media-gallery--layout-${size}`} style={style} ref={this.handleRef}>
{children}

{(!visible || uncached) && (
<div className={classNames('spoiler-button', { 'spoiler-button--click-thru': uncached })}>
{spoilerButton}
</div>
)}

{children}

{(visible && !uncached) && (
<div className='media-gallery__actions'>
<button className='media-gallery__actions__pill' onClick={this.handleOpen}><FormattedMessage id='media_gallery.hide' defaultMessage='Hide' /></button>
Expand Down

0 comments on commit 51769e0

Please sign in to comment.