mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Merge dfd60ff601 into 002632c3bb
This commit is contained in:
commit
6fb66bd2e9
|
|
@ -151,6 +151,7 @@ class Item extends PureComponent {
|
||||||
srcSet={srcSet}
|
srcSet={srcSet}
|
||||||
sizes={sizes}
|
sizes={sizes}
|
||||||
alt={description}
|
alt={description}
|
||||||
|
title={description}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
style={{ objectPosition: `${x}% ${y}%` }}
|
style={{ objectPosition: `${x}% ${y}%` }}
|
||||||
onLoad={this.handleImageLoad}
|
onLoad={this.handleImageLoad}
|
||||||
|
|
@ -173,6 +174,7 @@ class Item extends PureComponent {
|
||||||
<video
|
<video
|
||||||
className='media-gallery__item-gifv-thumbnail'
|
className='media-gallery__item-gifv-thumbnail'
|
||||||
aria-label={description}
|
aria-label={description}
|
||||||
|
title={description}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
role='application'
|
role='application'
|
||||||
src={attachment.get('url')}
|
src={attachment.get('url')}
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ export const MediaItem: React.FC<{
|
||||||
<img
|
<img
|
||||||
src={previewUrl || avatarUrl}
|
src={previewUrl || avatarUrl}
|
||||||
alt={description}
|
alt={description}
|
||||||
|
title={description}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
onLoad={handleImageLoad}
|
onLoad={handleImageLoad}
|
||||||
onError={handleImageError}
|
onError={handleImageError}
|
||||||
|
|
@ -121,6 +122,7 @@ export const MediaItem: React.FC<{
|
||||||
<img
|
<img
|
||||||
src={previewUrl}
|
src={previewUrl}
|
||||||
alt={description}
|
alt={description}
|
||||||
|
title={description}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
style={{ objectPosition: `${x}% ${y}%` }}
|
style={{ objectPosition: `${x}% ${y}%` }}
|
||||||
onLoad={handleImageLoad}
|
onLoad={handleImageLoad}
|
||||||
|
|
@ -139,6 +141,7 @@ export const MediaItem: React.FC<{
|
||||||
<video
|
<video
|
||||||
className='media-gallery__item-gifv-thumbnail'
|
className='media-gallery__item-gifv-thumbnail'
|
||||||
aria-label={description}
|
aria-label={description}
|
||||||
|
title={description}
|
||||||
lang={lang}
|
lang={lang}
|
||||||
src={fullUrl}
|
src={fullUrl}
|
||||||
onMouseEnter={handleMouseEnter}
|
onMouseEnter={handleMouseEnter}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user