Skip to content

Commit 068fa9a

Browse files
committed
优化思考和备份的夜间模式效果,统一图标尺寸
1 parent 1207f43 commit 068fa9a

File tree

8 files changed

+95
-101
lines changed

8 files changed

+95
-101
lines changed

app/components/chat.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import BottomIcon from "../icons/bottom.svg";
4242
import StopIcon from "../icons/pause.svg";
4343
import RobotIcon from "../icons/robot.svg";
4444

45-
import FileExpressIcon from "../icons/upload-and-download.svg";
45+
import FileExpressIcon from "../icons/cloud.svg";
4646
import SearchChatIcon from "../icons/zoom.svg";
4747
import ShortcutkeyIcon from "../icons/shortcutkey.svg";
4848
import ReloadIcon from "../icons/reload.svg";
@@ -796,7 +796,7 @@ export function ChatActions(props: {
796796
icon={props.uploading ? <LoadingButtonIcon /> : <ImageIcon />}
797797
/>
798798
)}
799-
{ !isMobileScreen && (
799+
{!isMobileScreen && (
800800
<ChatAction
801801
onClick={nextTheme}
802802
text={Locale.Chat.InputActions.Theme[theme]}
@@ -820,7 +820,7 @@ export function ChatActions(props: {
820820
icon={<PromptIcon />}
821821
/>
822822

823-
{ !isMobileScreen && (
823+
{!isMobileScreen && (
824824
<ChatAction
825825
onClick={() => {
826826
navigate(Path.Masks);
@@ -912,7 +912,7 @@ export function ChatActions(props: {
912912
alwaysShowText={isTranslating}
913913
icon={<TranslateIcon />}
914914
/>
915-
{ !isMobileScreen && (
915+
{!isMobileScreen && (
916916
<ChatAction
917917
onClick={handleOCR}
918918
text={
@@ -1090,7 +1090,7 @@ function ChatInputActions(props: {
10901090
openaiSpeech: (text: string) => void;
10911091
setUserInput: (text: string) => void;
10921092
speechStatus: boolean;
1093-
config: any;
1093+
config: any;
10941094
i: number;
10951095
}) {
10961096
const {
@@ -2168,24 +2168,24 @@ function _Chat() {
21682168
}`}
21692169
</div>
21702170
{showActions && (
2171-
<div className={styles["chat-message-actions"]}>
2172-
<div className={styles["chat-input-actions"]}>
2173-
<ChatInputActions
2174-
message={message}
2175-
onUserStop={onUserStop}
2176-
onResend={onResend}
2177-
onDelete={onDelete}
2178-
onPinMessage={onPinMessage}
2179-
copyToClipboard={copyToClipboard}
2180-
openaiSpeech={openaiSpeech}
2181-
setUserInput={setUserInput}
2182-
speechStatus={speechStatus}
2183-
config={config}
2184-
i={i}
2185-
/>
2186-
</div>
2171+
<div className={styles["chat-message-actions"]}>
2172+
<div className={styles["chat-input-actions"]}>
2173+
<ChatInputActions
2174+
message={message}
2175+
onUserStop={onUserStop}
2176+
onResend={onResend}
2177+
onDelete={onDelete}
2178+
onPinMessage={onPinMessage}
2179+
copyToClipboard={copyToClipboard}
2180+
openaiSpeech={openaiSpeech}
2181+
setUserInput={setUserInput}
2182+
speechStatus={speechStatus}
2183+
config={config}
2184+
i={i}
2185+
/>
21872186
</div>
2188-
)}
2187+
</div>
2188+
)}
21892189
</div>
21902190
</div>
21912191
{shouldShowClearContextDivider && <ClearContextDivider />}

app/components/cloud-backup.module.scss

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
.backup-header {
1212
padding: 8px 12px;
13-
background-color: #f9f9f9;
14-
border-bottom: 1px solid #ddd;
13+
background-color: var(--white);
14+
border-bottom: var(--border-in-light);
1515
flex-shrink: 0;
1616
max-height: 50vh; /* 限制最大高度为视口的50% */
1717
overflow-y: auto; /* 当内容过多时允许滚动 */
@@ -21,7 +21,7 @@
2121
text-align: center;
2222
margin-bottom: 10px;
2323
font-size: 18px;
24-
color: #333333;
24+
color: var(--black);
2525
}
2626
.window-action-button {
2727
position: absolute;
@@ -41,29 +41,31 @@
4141
margin-bottom: 6px;
4242
font-weight: bold;
4343
font-size: 14px;
44-
color: #555555;
44+
color: var(--text-color-secondary);
4545
}
4646

4747
.input {
4848
flex: 1;
4949
width: 100%;
5050
min-width: 400px;
5151
padding: 6px 10px;
52-
border: 1px solid #cccccc;
52+
border: var(--border-in-light);
5353
border-radius: 5px;
5454
font-size: 14px;
5555
margin-right: 0.2rem;
5656
box-sizing: border-box;
5757
transition: border-color 0.3s ease;
5858
display: block;
59+
background-color: var(--white);
60+
color: var(--black);
5961

6062
&:focus {
61-
border-color: #007bff;
63+
border-color: var(--primary);
6264
outline: none;
6365
}
6466

6567
&:disabled {
66-
background-color: #f5f5f5;
68+
background-color: var(--button-disabled-bg);
6769
}
6870
}
6971

@@ -78,19 +80,19 @@
7880
padding: 10px 20px;
7981
margin-bottom: 5px;
8082
font-size: 14px;
81-
color: #ffffff;
82-
background-color: #007bff;
83+
color: var(--white);
84+
background-color: var(--primary);
8385
border: none;
8486
border-radius: 5px;
8587
cursor: pointer;
8688
transition: background-color 0.3s ease;
8789

8890
&:hover:not(:disabled) {
89-
background-color: #0056b3;
91+
opacity: 0.8;
9092
}
9193

9294
&:disabled {
93-
background-color: #6c757d;
95+
background-color: var(--button-disabled-bg);
9496
cursor: not-allowed;
9597
}
9698
}
@@ -100,6 +102,7 @@
100102
text-align: center;
101103
font-weight: bold;
102104
font-size: 16px;
105+
color: var(--text-color);
103106
}
104107
}
105108

@@ -109,33 +112,33 @@
109112
padding: 10px;
110113
max-height: 55vh;
111114
overflow-y: auto;
112-
background-color: #fafafa;
115+
background-color: var(--background-color-secondary);
113116

114117
// 滚动条样式
115118
scrollbar-width: thin; /* Firefox */
116119
scrollbar-color: #3298eb #f1f1f1; /* Firefox */
117-
120+
118121
.fileListContainer::-webkit-scrollbar {
119122
width: 16px;
120123
}
121-
124+
122125
.fileListContainer::-webkit-scrollbar-track {
123126
background: #f1f1f1;
124127
border-radius: 8px;
125128
}
126-
129+
127130
.fileListContainer::-webkit-scrollbar-thumb {
128131
background: #3298eb;
129132
border-radius: 8px;
130133
}
131-
134+
132135
.fileListContainer::-webkit-scrollbar-thumb:hover {
133136
background: #499ee5;
134137
}
135138

136139
.subtitle {
137140
font-size: 18px;
138-
color: #333333;
141+
color: var(--black);
139142
margin-bottom: 18px;
140143
text-align: center;
141144
}
@@ -151,30 +154,32 @@
151154
justify-content: space-between;
152155
align-items: center;
153156
padding: 12px 10px;
154-
border: 1px solid #eee;
157+
border: var(--border-in-light);
155158
border-radius: 5px;
156159
margin-bottom: 8px;
157-
background-color: #ffffff;
160+
background-color: var(--white);
158161
transition: background-color 0.3s ease;
159162

160163
&:hover {
161-
background-color: #f9f9f9;
164+
background-color: var(--hover-color);
162165
}
163166

164167
.fileInfo {
165168
flex: 2;
166169
font-size: 14px;
167-
color: #555555;
170+
color: var(--text-color-secondary);
168171
word-break: break-all;
169172
}
170173

171174
.renameInput {
172175
width: 100%;
173176
padding: 6px 10px;
174-
border: 1px solid #cccccc;
177+
border: var(--border-in-light);
175178
border-radius: 4px;
176179
font-size: 13px;
177180
box-sizing: border-box;
181+
background-color: var(--white);
182+
color: var(--black);
178183
}
179184

180185
.fileActions {
@@ -187,19 +192,19 @@
187192
.actionButton {
188193
padding: 6px 10px;
189194
font-size: 13px;
190-
color: #ffffff;
191-
background-color: #007bff;
195+
color: var(--white);
196+
background-color: var(--primary);
192197
border: none;
193198
border-radius: 4px;
194199
cursor: pointer;
195200
transition: background-color 0.3s ease;
196201

197202
&:hover:not(:disabled) {
198-
background-color: #0056b3;
203+
background-color: var(--primary-hover);
199204
}
200205

201206
&:disabled {
202-
background-color: #6c757d;
207+
background-color: var(--button-disabled-bg);
203208
cursor: not-allowed;
204209
}
205210
}

0 commit comments

Comments
 (0)