Chats: display attachments in a shitty letterbox to support FireFox
This commit is contained in:
parent
fdaa9f24ce
commit
255419a6e9
2 changed files with 17 additions and 11 deletions
|
@ -155,15 +155,17 @@ class ChatMessageList extends ImmutablePureComponent {
|
||||||
const attachment = chatMessage.get('attachment');
|
const attachment = chatMessage.get('attachment');
|
||||||
if (!attachment) return null;
|
if (!attachment) return null;
|
||||||
return (
|
return (
|
||||||
<Bundle fetchComponent={MediaGallery}>
|
<div className='chat-message__media'>
|
||||||
{Component => (
|
<Bundle fetchComponent={MediaGallery}>
|
||||||
<Component
|
{Component => (
|
||||||
media={ImmutableList([attachment])}
|
<Component
|
||||||
height={120}
|
media={ImmutableList([attachment])}
|
||||||
onOpenMedia={this.onOpenMedia}
|
height={120}
|
||||||
/>
|
onOpenMedia={this.onOpenMedia}
|
||||||
)}
|
/>
|
||||||
</Bundle>
|
)}
|
||||||
|
</Bundle>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -342,8 +342,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-message__media {
|
||||||
|
height: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
.chat-message .media-gallery {
|
.chat-message .media-gallery {
|
||||||
height: auto !important;
|
height: 100% !important;
|
||||||
margin: 4px 0 8px;
|
margin: 4px 0 8px;
|
||||||
|
|
||||||
.spoiler-button {
|
.spoiler-button {
|
||||||
|
@ -353,7 +357,7 @@
|
||||||
.media-gallery__item:not(.media-gallery__item--image) {
|
.media-gallery__item:not(.media-gallery__item--image) {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
width: 120px !important;
|
width: 120px !important;
|
||||||
height: 70px !important;
|
height: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__preview {
|
&__preview {
|
||||||
|
|
Loading…
Reference in a new issue