Fix UnknownBody error message unalignment (#8346)
This commit is contained in:
parent
2fcf787578
commit
a471742e97
1 changed files with 3 additions and 3 deletions
|
@ -23,12 +23,12 @@ interface IProps {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default forwardRef(({ mxEvent, children }: IProps, ref: React.RefObject<HTMLSpanElement>) => {
|
export default forwardRef(({ mxEvent, children }: IProps, ref: React.RefObject<HTMLDivElement>) => {
|
||||||
const text = mxEvent.getContent().body;
|
const text = mxEvent.getContent().body;
|
||||||
return (
|
return (
|
||||||
<span className="mx_UnknownBody" ref={ref}>
|
<div className="mx_UnknownBody" ref={ref}>
|
||||||
{ text }
|
{ text }
|
||||||
{ children }
|
{ children }
|
||||||
</span>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue