diff --git a/docs/develop-guides/roadmap.md b/docs/develop-guides/roadmap.md index 6de89e52..57ad922b 100644 --- a/docs/develop-guides/roadmap.md +++ b/docs/develop-guides/roadmap.md @@ -48,6 +48,7 @@ ### 修复 - 为沙盒与 viewer 文件系统补齐知识库只读映射:新增 `/home/gem/kbs` 命名空间,按“用户可访问知识库 ∩ 当前 Agent 已启用知识库”暴露原始文件与解析后的 Markdown,并补充对应后端与 viewer 路由测试 +- 修复前端工具图标与渲染匹配不准确的问题:工具管理列表与工具调用结果统一改为基于工具 `id` 的精确映射,避免模糊匹配导致的误渲染,未命中的工具不再显示默认扳手图标 diff --git a/web/src/assets/css/extensions.less b/web/src/assets/css/extensions.less index 45b46a64..134006da 100644 --- a/web/src/assets/css/extensions.less +++ b/web/src/assets/css/extensions.less @@ -31,11 +31,50 @@ flex-shrink: 0; .search-box { - padding: 12px 12px 0; + padding: 8px 12px 0; + + :deep(.ant-input-affix-wrapper) { + height: 28px; + padding: 0 12px; + // border: none; + border-radius: 8px; + background-color: var(--gray-0); + box-shadow: none; + + &:hover, + &:focus, + &.ant-input-affix-wrapper-focused { + // border: none; + box-shadow: none; + } + } + + :deep(.ant-input-prefix) { + margin-right: 8px; + color: var(--gray-400); + } + + :deep(.ant-input) { + height: 100%; + background-color: transparent; + } + + :deep(.ant-input::placeholder) { + color: var(--gray-400); + } + + :deep(.ant-input-clear-icon) { + color: var(--gray-400); + } + + :deep(.ant-input-clear-icon:hover) { + color: var(--gray-500); + } + + // :deep(.ant-input-outlined) { + // border: none; + // } - .search-input :deep(.ant-input) { - height: 28px; - } } .list-container { diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index 0834669a..2fbdc3b2 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -155,7 +155,6 @@ :is-loading="isProcessing" :disabled="!currentAgent" :send-button-disabled="isSendButtonDisabled" - placeholder="输入问题..." :mention="mentionConfig" :supports-file-upload="supportsFileUpload" :is-panel-open="isAgentPanelOpen" diff --git a/web/src/components/AgentInputArea.vue b/web/src/components/AgentInputArea.vue index bb9e3b4a..1505b803 100644 --- a/web/src/components/AgentInputArea.vue +++ b/web/src/components/AgentInputArea.vue @@ -63,7 +63,6 @@ const props = defineProps({ isLoading: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, sendButtonDisabled: { type: Boolean, default: false }, - placeholder: { type: String, default: '输入问题...' }, mention: { type: Object, default: () => null }, supportsFileUpload: { type: Boolean, default: false }, isPanelOpen: { type: Boolean, default: false }, @@ -80,6 +79,7 @@ const emit = defineEmits([ const inputRef = ref(null) const currentImage = ref(null) +const placeholder = '问点什么?使用 @ 可以提及哦~' const updateValue = (val) => { emit('update:modelValue', val) diff --git a/web/src/components/AgentPanel.vue b/web/src/components/AgentPanel.vue index f302edb1..c47b39a2 100644 --- a/web/src/components/AgentPanel.vue +++ b/web/src/components/AgentPanel.vue @@ -141,7 +141,7 @@ -