Skip to content

Commit

Permalink
🔧 fix: fixed removed media messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Era360 committed Jun 18, 2024
1 parent 1f719c1 commit dcb6263
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/chat/chatbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SendIcon,
} from "../assets/icons";
import { SarufiIcon } from "../assets/illustrations";
import Media from "./media";

type ChatType = {
message: string;
Expand Down Expand Up @@ -168,7 +169,7 @@ const Chatbox = ({
}}
>
<div
className="sarufi-message-body sarufi-message-body-w-arrow"
className="sarufi-message-body"
style={{
maxWidth: 280,
background: "var(--sarufi-received-box-bg)",
Expand Down Expand Up @@ -201,7 +202,7 @@ const Chatbox = ({
))}
{loading && (
<div
className={`sarufi-message-body sarufi-message-body-w-arrow`}
className={`sarufi-message-body`}
style={{
background: "var(--sarufi-received-box-bg)",
padding: "6px 8px 8px 9px",
Expand Down Expand Up @@ -306,10 +307,10 @@ export default Chatbox;
const Chat = ({
chat,
onSubmit,
// mode,
// fontFamily,
// fontSize,
// index,
mode,
fontFamily,
fontSize,
index,
primaryColor,
}: {
chat: any;
Expand Down Expand Up @@ -401,6 +402,13 @@ const Chat = ({
</div>
)}
<div>
<Media
chat={chat}
mode={mode}
fontFamily={fontFamily}
fontSize={fontSize}
messageIndex={index}
/>
<div
className={`sarufi-message-body ${chat?.sent ? "sent" : ""}`}
style={{
Expand Down

0 comments on commit dcb6263

Please sign in to comment.