|
@@ -310,7 +310,7 @@ function ChatAction(props: {
|
|
}
|
|
}
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
- updateWidth();
|
|
|
|
|
|
+ setTimeout(updateWidth, 100);
|
|
}, []);
|
|
}, []);
|
|
|
|
|
|
return (
|
|
return (
|
|
@@ -937,30 +937,30 @@ export function Chat() {
|
|
/>
|
|
/>
|
|
) : (
|
|
) : (
|
|
<>
|
|
<>
|
|
- <ChatAction
|
|
|
|
- text={Locale.Chat.Actions.Delete}
|
|
|
|
- icon={<DeleteIcon />}
|
|
|
|
- onClick={() => onDelete(message.id ?? i)}
|
|
|
|
- />
|
|
|
|
-
|
|
|
|
<ChatAction
|
|
<ChatAction
|
|
text={Locale.Chat.Actions.Retry}
|
|
text={Locale.Chat.Actions.Retry}
|
|
icon={<ResetIcon />}
|
|
icon={<ResetIcon />}
|
|
onClick={() => onResend(message.id ?? i)}
|
|
onClick={() => onResend(message.id ?? i)}
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
+ <ChatAction
|
|
|
|
+ text={Locale.Chat.Actions.Delete}
|
|
|
|
+ icon={<DeleteIcon />}
|
|
|
|
+ onClick={() => onDelete(message.id ?? i)}
|
|
|
|
+ />
|
|
|
|
+
|
|
<ChatAction
|
|
<ChatAction
|
|
text={Locale.Chat.Actions.Pin}
|
|
text={Locale.Chat.Actions.Pin}
|
|
icon={<PinIcon />}
|
|
icon={<PinIcon />}
|
|
onClick={() => onPinMessage(message)}
|
|
onClick={() => onPinMessage(message)}
|
|
/>
|
|
/>
|
|
|
|
+ <ChatAction
|
|
|
|
+ text={Locale.Chat.Actions.Copy}
|
|
|
|
+ icon={<CopyIcon />}
|
|
|
|
+ onClick={() => copyToClipboard(message.content)}
|
|
|
|
+ />
|
|
</>
|
|
</>
|
|
)}
|
|
)}
|
|
- <ChatAction
|
|
|
|
- text={Locale.Chat.Actions.Copy}
|
|
|
|
- icon={<CopyIcon />}
|
|
|
|
- onClick={() => copyToClipboard(message.content)}
|
|
|
|
- />
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div className={styles["chat-message-action-date"]}>
|
|
<div className={styles["chat-message-action-date"]}>
|