mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 19:26:54 +08:00
fixup: i18n and icon minor changes
This commit is contained in:
@@ -303,8 +303,12 @@ function ClearContextDivider() {
|
||||
)
|
||||
}
|
||||
>
|
||||
<div className={chatStyle["clear-context-tips"]}>上下文已清除</div>
|
||||
<div className={chatStyle["clear-context-revert-btn"]}>取消清除</div>
|
||||
<div className={chatStyle["clear-context-tips"]}>
|
||||
{Locale.Context.Clear}
|
||||
</div>
|
||||
<div className={chatStyle["clear-context-revert-btn"]}>
|
||||
{Locale.Context.Revert}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -417,7 +421,7 @@ export function ChatActions(props: {
|
||||
className={`${chatStyle["chat-input-action"]} clickable`}
|
||||
onClick={() => {
|
||||
chatStore.updateCurrentSession((session) => {
|
||||
if ((session.clearContextIndex ?? -1) > 0) {
|
||||
if (session.clearContextIndex === session.messages.length) {
|
||||
session.clearContextIndex = -1;
|
||||
} else {
|
||||
session.clearContextIndex = session.messages.length;
|
||||
|
Reference in New Issue
Block a user