sforkowany z mirror/soapbox
Chats: display of non-image attachments
rodzic
a02155846d
commit
024e9209af
|
@ -220,7 +220,7 @@ class Item extends React.PureComponent {
|
|||
}
|
||||
|
||||
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', `media-gallery__item--${attachment.get('type')}`, { 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 })} />
|
||||
{visible && thumbnail}
|
||||
</div>
|
||||
|
|
|
@ -351,6 +351,12 @@
|
|||
display: none;
|
||||
}
|
||||
|
||||
.media-gallery__item:not(.media-gallery__item--image) {
|
||||
max-width: 100%;
|
||||
width: 120px !important;
|
||||
height: 70px !important;
|
||||
}
|
||||
|
||||
&__preview {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue