We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c392d commit 743fde9Copy full SHA for 743fde9
src/chatPanel.ts
@@ -104,8 +104,13 @@ export class ChatPanel {
104
<meta name="viewport" content="width=device-width, initial-scale=1.0">
105
<title>Chat with Model</title>
106
<style>
107
- .user { color: blue; }
108
- .model { color: green; }
+ .user {
+ color: black; /* 黑色字体 */
109
+ background-color: #a3a3a3; /* 浅灰色背景 */
110
+ }
111
+ .model {
112
+ color: white; /* 白色字体 */
113
114
#chat {
115
height: calc(100vh - 150px);
116
overflow-y: auto;
@@ -118,7 +123,7 @@ export class ChatPanel {
118
123
padding: 10px;
119
124
}
120
125
#chat div {
121
- white-space: pre-wrap; /* 关键代码:保留换行符 */
126
+ white-space: pre-wrap; /* 保留换行符 */
122
127
margin-bottom: 8px; /* 段落间距(可选) */
128
129
</style>
0 commit comments