summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBramus! <bramus@bram.us>2022-12-15 18:37:47 +0100
committerGitHub <noreply@github.com>2022-12-15 18:37:47 +0100
commit7fbc17afa246c5cd384123ace51e07622204b67c (patch)
treed307cdb8952b62380cf9b241c7726e5e9731f9e1
parent99d26930719bb032860f6dd125116d84b93a3d0c (diff)
Fix media markup (#21420)
This brings the markup of the MediaItem component on par with the Item component from media_gallery. Co-authored-by: Effy Elden <effy@effy.space>
-rw-r--r--app/javascript/mastodon/features/account_gallery/components/media_item.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/account_gallery/components/media_item.js b/app/javascript/mastodon/features/account_gallery/components/media_item.js
index f16fe07f1d5..13fd7fe03db 100644
--- a/app/javascript/mastodon/features/account_gallery/components/media_item.js
+++ b/app/javascript/mastodon/features/account_gallery/components/media_item.js
@@ -104,6 +104,7 @@ export default class MediaItem extends ImmutablePureComponent {
<video
className='media-gallery__item-gifv-thumbnail'
aria-label={attachment.get('description')}
+ title={attachment.get('description')}
role='application'
src={attachment.get('url')}
onMouseEnter={this.handleMouseEnter}