Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix UnknownBody error message unalignment (#8346)
Browse files Browse the repository at this point in the history
  • Loading branch information
luixxiul committed Apr 20, 2022
1 parent 2fcf787 commit a471742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/views/messages/UnknownBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ interface IProps {
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;
return (
<span className="mx_UnknownBody" ref={ref}>
<div className="mx_UnknownBody" ref={ref}>
{ text }
{ children }
</span>
</div>
);
});

0 comments on commit a471742

Please sign in to comment.