Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797

Daniel1ed54906fc48
diff --git a/app/src/assets/scss/business/_agentChat.scss b/app/src/assets/scss/business/_agentChat.scss
index e134615f4b..e875b76b86 100644
--- a/app/src/assets/scss/business/_agentChat.scss
+++ b/app/src/assets/scss/business/_agentChat.scss
@@ -376,7 +376,9 @@
.agent-chat__error-icon {
width: 16px; height: 16px;
flex-shrink: 0;
- margin-top: 2px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
.agent-chat__snapshot-body {
@@ -391,6 +393,9 @@
width: 14px;
height: 14px;
flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
.agent-chat__snapshot-text {
@@ -602,6 +607,9 @@
width: 14px;
height: 14px;
flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
.agent-chat__tool-title {
@@ -804,6 +812,9 @@
flex-shrink: 0;
width: 14px;
height: 14px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
}
// Question card styles
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 1463c02188..d5572d1ea9 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -226,7 +226,7 @@ export const getAllLayout = () => {
const initInternalDock = (dockItem: Config.IUILayoutDockTab[]) => {
dockItem.forEach((existSubItem, index) => {
- if (window.siyuan.isPublish && existSubItem.type === "inbox") {
+ if (window.siyuan.isPublish && (existSubItem.type === "inbox" || existSubItem.type === "agentChat")) {
dockItem.splice(index, 1);
return;
}