From d3fb2d95462f5165f06b1b536439356b74a7f2b7 Mon Sep 17 00:00:00 2001 From: William Grant Date: Thu, 5 Oct 2023 14:29:29 +1100 Subject: [PATCH] fix: removed public-chat-message-wrapper padding --- stylesheets/_conversation.scss | 5 ----- .../message/message-item/GenericReadableMessage.tsx | 8 +------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/stylesheets/_conversation.scss b/stylesheets/_conversation.scss index 5d9713244..4d5406753 100644 --- a/stylesheets/_conversation.scss +++ b/stylesheets/_conversation.scss @@ -4,8 +4,3 @@ overflow-y: auto; z-index: 2; } - -.public-chat-message-wrapper { - padding-inline-start: 10px; - padding-inline-end: 10px; -} diff --git a/ts/components/conversation/message/message-item/GenericReadableMessage.tsx b/ts/components/conversation/message/message-item/GenericReadableMessage.tsx index 65f2b869e..e94d03fc5 100644 --- a/ts/components/conversation/message/message-item/GenericReadableMessage.tsx +++ b/ts/components/conversation/message/message-item/GenericReadableMessage.tsx @@ -12,7 +12,6 @@ import { isMessageSelectionMode, } from '../../../../state/selectors/conversations'; import { MessageContentWithStatuses } from '../message-content/MessageContentWithStatus'; -import { isOpenOrClosedGroup } from '../../../../models/conversationAttributes'; import { StyledMessageReactionsContainer } from '../message-content/MessageReactions'; export type GenericReadableMessageSelectorProps = Pick< @@ -145,19 +144,14 @@ export const GenericReadableMessage = (props: Props) => { if (!msgProps) { return null; } - const { conversationType } = msgProps; const selected = isMessageSelected || false; - const isGroup = isOpenOrClosedGroup(conversationType); return (