diff --git a/frontend/src/components/MarkdownRender.tsx b/frontend/src/components/MarkdownRender.tsx index 27977a7..6a81136 100644 --- a/frontend/src/components/MarkdownRender.tsx +++ b/frontend/src/components/MarkdownRender.tsx @@ -28,10 +28,10 @@ const MarkdownRender: FC = (props return (
{props.disabled ? -
+
{props.children}
: - ; }); +const HiddenAvatar: FC = ({ children, hidden, ...props }) => { + if (hidden) { + return
{children}
; + } else { + return ( + + {children} + + ); + } +}; + const ChatMessageItem: FC<{ uuid: string, onSubmit: (message: string | null, answerId: string | null, @@ -129,7 +142,9 @@ const ChatMessageItem: FC<{ return
{ const utils = document.getElementById('utils-' + uuid); @@ -140,22 +155,26 @@ const ChatMessageItem: FC<{ if (utils) utils.classList.add('invisible'); }} > -