mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 21:17:24 +08:00
fixup: i18n and icon minor changes
This commit is contained in:
@@ -120,7 +120,6 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
opacity: 0.5;
|
||||
color: var(--black);
|
||||
transition: all ease 0.3s;
|
||||
cursor: pointer;
|
||||
@@ -128,6 +127,8 @@
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
|
||||
animation: slide-in ease 0.3s;
|
||||
|
||||
$linear: linear-gradient(
|
||||
to right,
|
||||
rgba(0, 0, 0, 0),
|
||||
@@ -152,6 +153,7 @@
|
||||
|
||||
&-tips {
|
||||
@include show;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
&-revert-btn {
|
||||
|
@@ -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