TESTING gifs
This commit is contained in:
parent
432817741a
commit
7ec113a038
@ -188,9 +188,6 @@ class Item extends React.PureComponent {
|
|||||||
role='application'
|
role='application'
|
||||||
src={gifsrc}
|
src={gifsrc}
|
||||||
type='video/mp4'
|
type='video/mp4'
|
||||||
onClick={this.handleClick}
|
|
||||||
onMouseEnter={this.handleMouseEnter}
|
|
||||||
onMouseLeave={this.handleMouseLeave}
|
|
||||||
autoPlay={autoPlay}
|
autoPlay={autoPlay}
|
||||||
preload='auto'
|
preload='auto'
|
||||||
loop
|
loop
|
||||||
@ -205,8 +202,8 @@ class Item extends React.PureComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames('media-gallery__item', { standalone })} key={attachment.get('id')} style={{ position, float, left, top, right, bottom, height, width: `${width}%` }}>
|
<div className={classNames('media-gallery__item', { standalone })} key={attachment.get('id')} style={{ position, float, left, top, right, bottom, height, width: `${width}%` }}>
|
||||||
<canvas width={32} height={32} ref={this.setCanvasRef} className={classNames('media-gallery__preview', { 'media-gallery__preview--hidden': visible && this.state.loaded })} />
|
<canvas width={32} height={32} ref={this.setCanvasRef} className={classNames('media-gallery__preview', { 'media-gallery__preview--hidden': true })} />
|
||||||
{visible && thumbnail}
|
{thumbnail}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user