@ -130,9 +130,6 @@
border-radius: $session_message-container-border-radius;
overflow: hidden;
// no background by default for the attachment container
@include themify($themes) {
background: themed('inboxBackground');
}
.module-message--outgoing {
@ -1284,7 +1281,8 @@
.module-image {
background-color: $color-white;
// background-color: $color-white;
background-color: rgba(0, 0, 0, 0);
position: relative;
display: inline-block;
margin: 1px;
@ -25,9 +25,15 @@
&__container--incoming {
&--opaque {
background: themed('receivedMessageBackground');
&--transparent {
background: none;
.module-message__text {
@ -49,9 +55,16 @@
&__container--outgoing {
background: themed('sentMessageBackground');
@ -401,7 +401,7 @@
// Module: Image
background-color: $color-black;
.module-image__border-overlay {
@ -781,7 +781,10 @@ class MessageInner extends React.PureComponent<MessageRegularProps, State> {
<div
className={classNames(
'module-message__container',
`module-message__container--${direction}`
`module-message__container--${direction}`,
isShowingImage ?
`module-message__container--${direction}--transparent` :
`module-message__container--${direction}--opaque`
)}
style={{
width: isShowingImage ? width : undefined,