Skip to content

Commit 5aebc24

Browse files
committed
style: 调整聊天组件和消息组件的样式,优化视觉效果
- 在 AgentMessageComponent.vue 中更新了 Markdown 预览的颜色和字体大小,增强了文本的可读性。 - 在 ChatSidebarComponent.vue 中修改了对话列表的内边距和按钮样式,提升了整体界面的美观性和一致性。
1 parent 5000afc commit 5aebc24

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

web/src/components/AgentMessageComponent.vue

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -479,34 +479,38 @@ const toggleToolCall = (toolCallId) => {
479479
}
480480
481481
.message-md .md-editor-preview-wrapper {
482-
color: var(--gray-900);
483482
max-width: 100%;
484483
padding: 0;
485484
font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', 'Courier New', monospace;
486485
487486
#preview-only-preview {
488487
font-size: 15px;
488+
color: var(--gray-900);
489489
}
490490
491491
h1, h2 {
492-
font-size: 1.2rem;
492+
font-size: 16px;
493493
}
494494
495495
h3, h4 {
496-
font-size: 1.1rem;
496+
font-size: 16px;
497497
}
498498
499499
h5, h6 {
500-
font-size: 1rem;
500+
font-size: 15px;
501501
}
502502
503-
// li > p, ol > p, ul > p {
504-
// margin: 0.25rem 0;
505-
// }
503+
strong {
504+
font-weight: 600;
505+
}
506+
507+
li > p, ol > p, ul > p {
508+
margin: 0.25rem 0;
509+
}
506510
507-
// ol, ul {
508-
// padding-left: 1rem;
509-
// }
511+
ol, ul {
512+
padding-left: 1rem;
513+
}
510514
511515
cite {
512516
font-size: 12px;

web/src/components/ChatSidebarComponent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,14 @@ const toggleCollapse = () => {
205205
}
206206
207207
.conversation-list-top {
208-
padding: 16px;
208+
padding: 10px;
209209
210210
.new-chat-btn {
211211
width: 100%;
212212
padding: 8px 16px;
213213
height: fit-content;
214-
border-radius: 16px;
215-
background-color: var(--gray-300);
214+
border-radius: 8px;
215+
background-color: var(--gray-200);
216216
color: var(--main-color);
217217
border: none;
218218
transition: all 0.2s ease;
@@ -233,7 +233,7 @@ const toggleCollapse = () => {
233233
display: flex;
234234
align-items: center;
235235
justify-content: space-between;
236-
padding: 4px 16px;
236+
padding: 4px 0px 4px 12px;
237237
border-radius: 8px;
238238
margin-bottom: 8px;
239239
cursor: pointer;

0 commit comments

Comments
 (0)