mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 06:12:23 +03:00
101174f71e
Virtuoso can't calculate the size of elements that have margins. This causes strange behaviour with scrolling in chat. Co-authored-by: janWilejan <>
14 lines
460 B
TypeScript
14 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>
|
|
);
|