Changing the icon to move just in the last message on chat
This commit is contained in:
parent
893dc22fc4
commit
6332c4c084
2 changed files with 7 additions and 3 deletions
|
|
@ -16,13 +16,12 @@ import Convert from "ansi-to-html";
|
||||||
export default function ChatMessage({
|
export default function ChatMessage({
|
||||||
chat,
|
chat,
|
||||||
lockChat,
|
lockChat,
|
||||||
lastMessage
|
lastMessage,
|
||||||
}: {
|
}: {
|
||||||
chat: ChatMessageType;
|
chat: ChatMessageType;
|
||||||
lockChat: boolean;
|
lockChat: boolean;
|
||||||
lastMessage: boolean;
|
lastMessage: boolean;
|
||||||
}) {
|
}) {
|
||||||
|
|
||||||
const convert = new Convert({ newline: true });
|
const convert = new Convert({ newline: true });
|
||||||
const [message, setMessage] = useState("");
|
const [message, setMessage] = useState("");
|
||||||
const imgRef = useRef(null);
|
const imgRef = useRef(null);
|
||||||
|
|
|
||||||
|
|
@ -416,7 +416,12 @@ export default function ChatModal({
|
||||||
>
|
>
|
||||||
{chatHistory.length > 0 ? (
|
{chatHistory.length > 0 ? (
|
||||||
chatHistory.map((c, i) => (
|
chatHistory.map((c, i) => (
|
||||||
<ChatMessage lockChat={lockChat} chat={c} lastMessage={chatHistory.length-1 == i ? true : false} key={i} />
|
<ChatMessage
|
||||||
|
lockChat={lockChat}
|
||||||
|
chat={c}
|
||||||
|
lastMessage={chatHistory.length - 1 == i ? true : false}
|
||||||
|
key={i}
|
||||||
|
/>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col h-full text-center justify-center w-full items-center align-middle">
|
<div className="flex flex-col h-full text-center justify-center w-full items-center align-middle">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue