style: 更新样式和颜色变量,优化组件视觉效果
- 在 base.css 中新增灰色调变量 --gray-25。 - 在 AgentMessageComponent.vue 和 KnowledgeBaseResult.vue 中调整背景颜色,使用新的灰色变量。 - 优化 AgentView.vue 中的样式,移除不必要的样式设置。
This commit is contained in:
parent
04aaa2e55f
commit
c0a6afc11c
@ -1,3 +1,4 @@
|
||||
|
||||
/* color palette from <https://github.com/vuejs/theme> */
|
||||
/* https://material-foundation.github.io/material-theme-builder/ */
|
||||
:root {
|
||||
@ -29,6 +30,7 @@
|
||||
--gray-200: #EFF1F2;
|
||||
--gray-100: #F8FAFB;
|
||||
--gray-50: #FBFDFE;
|
||||
--gray-25: #FCFEFF;
|
||||
--gray-10: #FDFEFF;
|
||||
--gray-0: #FFFFFF;
|
||||
|
||||
|
||||
@ -230,8 +230,7 @@ const toggleToolCall = (toolCallId) => {
|
||||
margin-bottom: 15px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--gray-200);
|
||||
background-color: var(--gray-50);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
|
||||
background-color: var(--gray-25);
|
||||
overflow: hidden;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
@ -248,12 +247,12 @@ const toggleToolCall = (toolCallId) => {
|
||||
border: none;
|
||||
|
||||
.ant-collapse-header {
|
||||
padding: 12px 16px;
|
||||
background-color: var(--gray-100);
|
||||
padding: 8px 12px;
|
||||
// background-color: var(--gray-100);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--gray-800);
|
||||
border-bottom: 1px solid var(--gray-200);
|
||||
// border-bottom: 1px solid var(--gray-200);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
@ -317,21 +316,22 @@ const toggleToolCall = (toolCallId) => {
|
||||
}
|
||||
|
||||
:deep(.tool-call-display) {
|
||||
background-color: var(--gray-50);
|
||||
background-color: var(--gray-25);
|
||||
border: 1px solid var(--gray-200);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--gray-50);
|
||||
border: 1px solid var(--gray-200);
|
||||
border-color: var(--main-300);
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.tool-header {
|
||||
padding: 12px 16px;
|
||||
background-color: var(--gray-100);
|
||||
padding: 8px 12px;
|
||||
// background-color: var(--gray-100);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--gray-800);
|
||||
@ -508,6 +508,15 @@ const toggleToolCall = (toolCallId) => {
|
||||
// padding-left: 1rem;
|
||||
// }
|
||||
|
||||
cite {
|
||||
font-size: 12px;
|
||||
color: var(--gray-700);
|
||||
font-style: normal;
|
||||
background-color: var(--gray-200);
|
||||
border-radius: 4px;
|
||||
outline: 2px solid var(--gray-200);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--main-700);
|
||||
}
|
||||
|
||||
@ -328,7 +328,7 @@ const getScoreColor = (score) => {
|
||||
.score-item {
|
||||
font-size: 11px;
|
||||
color: var(--gray-700);
|
||||
background: var(--main-10);
|
||||
// background: var(--main-10);
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
white-space: nowrap;
|
||||
|
||||
@ -693,8 +693,6 @@ const toggleSidebar = () => {
|
||||
}
|
||||
|
||||
.config-modal-content {
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
user-select: text;
|
||||
|
||||
div[role="alert"] {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user