101174f71e
Virtuoso can't calculate the size of elements that have margins. This causes strange behaviour with scrolling in chat. Co-authored-by: janWilejan <>
15 lines
460 B
TypeScript
15 lines
460 B
TypeScript
import { FC } from 'react';
|
|
import styles from './ChatActionMessage.module.scss';
|
|
|
|
/* eslint-disable react/no-danger */
|
|
export type ChatActionMessageProps = {
|
|
body: string;
|
|
};
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
export const ChatActionMessage: FC<ChatActionMessageProps> = ({ body }) => (
|
|
<div className={styles.chatActionPadding}>
|
|
<div dangerouslySetInnerHTML={{ __html: body }} className={styles.chatAction} />
|
|
</div>
|
|
);
|