Browse Source

fix: remove duplicate alt badge

pull/1371/head
Misty De Meo 3 months ago
parent
commit
4bb5628ac7
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C
  1. 4
      app/javascript/mastodon/components/media_gallery.jsx

4
app/javascript/mastodon/components/media_gallery.jsx

@ -113,10 +113,6 @@ class Item extends PureComponent {
badges.push(<NoAltTextBadge key='no-alt' />);
}
if (description?.length > 0) {
badges.push(<AltTextBadge key='alt' description={description} />);
}
if (attachment.get('type') === 'unknown') {
return (
<div className={classNames('media-gallery__item', { standalone, 'media-gallery__item--tall': height === 100, 'media-gallery__item--wide': width === 100, 'media-missing-description': !hasMediaDescription })} key={attachment.get('id')}>

Loading…
Cancel
Save