From fb81fce3317fff6eed3ac3e9dcc4d685b83a5011 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Tue, 20 Jul 2021 10:12:10 +1000 Subject: [PATCH] formatting and linting. --- stylesheets/_session_theme.scss | 1 - ts/components/conversation/Message.tsx | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/stylesheets/_session_theme.scss b/stylesheets/_session_theme.scss index 40356df68..3e66d9c02 100644 --- a/stylesheets/_session_theme.scss +++ b/stylesheets/_session_theme.scss @@ -61,7 +61,6 @@ } } - &--transparent { background: none; } diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index 630f6fac7..407574d58 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -671,8 +671,8 @@ class MessageInner extends React.PureComponent { return Boolean( displayImage && - ((isImage(attachments) && hasImage(attachments)) || - (isVideo(attachments) && hasVideoScreenshot(attachments))) + ((isImage(attachments) && hasImage(attachments)) || + (isVideo(attachments) && hasVideoScreenshot(attachments))) ); } @@ -782,9 +782,9 @@ class MessageInner extends React.PureComponent { className={classNames( 'module-message__container', `module-message__container--${direction}`, - isShowingImage ? - `module-message__container--${direction}--transparent` : - `module-message__container--${direction}--opaque` + isShowingImage + ? `module-message__container--${direction}--transparent` + : `module-message__container--${direction}--opaque` )} style={{ width: isShowingImage ? width : undefined,