fix: removed public-chat-message-wrapper padding

pull/2971/head
William Grant 2 years ago
parent 9cd85a47af
commit d3fb2d9546

@ -4,8 +4,3 @@
overflow-y: auto; overflow-y: auto;
z-index: 2; z-index: 2;
} }
.public-chat-message-wrapper {
padding-inline-start: 10px;
padding-inline-end: 10px;
}

@ -12,7 +12,6 @@ import {
isMessageSelectionMode, isMessageSelectionMode,
} from '../../../../state/selectors/conversations'; } from '../../../../state/selectors/conversations';
import { MessageContentWithStatuses } from '../message-content/MessageContentWithStatus'; import { MessageContentWithStatuses } from '../message-content/MessageContentWithStatus';
import { isOpenOrClosedGroup } from '../../../../models/conversationAttributes';
import { StyledMessageReactionsContainer } from '../message-content/MessageReactions'; import { StyledMessageReactionsContainer } from '../message-content/MessageReactions';
export type GenericReadableMessageSelectorProps = Pick< export type GenericReadableMessageSelectorProps = Pick<
@ -145,19 +144,14 @@ export const GenericReadableMessage = (props: Props) => {
if (!msgProps) { if (!msgProps) {
return null; return null;
} }
const { conversationType } = msgProps;
const selected = isMessageSelected || false; const selected = isMessageSelected || false;
const isGroup = isOpenOrClosedGroup(conversationType);
return ( return (
<StyledReadableMessage <StyledReadableMessage
selected={selected} selected={selected}
isRightClicked={isRightClicked} isRightClicked={isRightClicked}
className={classNames( className={classNames(selected && 'message-selected')}
selected && 'message-selected',
isGroup && 'public-chat-message-wrapper'
)}
onContextMenu={handleContextMenu} onContextMenu={handleContextMenu}
key={`readable-message-${messageId}`} key={`readable-message-${messageId}`}
> >

Loading…
Cancel
Save