Skip to content

Commit 743fde9

Browse files
committed
fix:调整聊天配色
1 parent 57c392d commit 743fde9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/chatPanel.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,13 @@ export class ChatPanel {
104104
<meta name="viewport" content="width=device-width, initial-scale=1.0">
105105
<title>Chat with Model</title>
106106
<style>
107-
.user { color: blue; }
108-
.model { color: green; }
107+
.user {
108+
color: black; /* 黑色字体 */
109+
background-color: #a3a3a3; /* 浅灰色背景 */
110+
}
111+
.model {
112+
color: white; /* 白色字体 */
113+
}
109114
#chat {
110115
height: calc(100vh - 150px);
111116
overflow-y: auto;
@@ -118,7 +123,7 @@ export class ChatPanel {
118123
padding: 10px;
119124
}
120125
#chat div {
121-
white-space: pre-wrap; /* 关键代码:保留换行符 */
126+
white-space: pre-wrap; /* 保留换行符 */
122127
margin-bottom: 8px; /* 段落间距(可选) */
123128
}
124129
</style>

0 commit comments

Comments
 (0)