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;
z-index: 2;
}
.public-chat-message-wrapper {
padding-inline-start: 10px;
padding-inline-end: 10px;
}

@ -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 (
<StyledReadableMessage
selected={selected}
isRightClicked={isRightClicked}
className={classNames(
selected && 'message-selected',
isGroup && 'public-chat-message-wrapper'
)}
className={classNames(selected && 'message-selected')}
onContextMenu={handleContextMenu}
key={`readable-message-${messageId}`}
>

Loading…
Cancel
Save