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

Daniel37e3bb4a331b
diff --git a/app/src/assets/scss/business/_agentChat.scss b/app/src/assets/scss/business/_agentChat.scss
index af1f97c0b7..f457232edb 100644
--- a/app/src/assets/scss/business/_agentChat.scss
+++ b/app/src/assets/scss/business/_agentChat.scss
@@ -1,5 +1,6 @@
+
.agent-chat__title {
font-size: 14px;
color: var(--b3-theme-on-background);
@@ -20,21 +21,6 @@
flex-direction: column;
gap: 12px;
user-select: text;
-
- &::-webkit-scrollbar {
- width: 5px;
- height: 5px;
- }
-
- &::-webkit-scrollbar-thumb {
- box-sizing: content-box;
- border: 2px solid transparent;
- border-radius: var(--b3-border-radius);
- box-shadow: inset 0 0 2.5px 2.5px var(--b3-scroll-color);
- &:hover {
- border-width: .5px;
- }
- }
}
.agent-welcome {
@@ -357,7 +343,7 @@
}
.agent-chat__msg--thinking {
- align-items: flex-start;
+ align-items: stretch;
}
.agent-chat__thinking-card {
@@ -417,6 +403,7 @@
.agent-chat__thinking-body {
max-height: 0;
overflow: hidden;
+ contain: layout paint;
background: transparent;
border-top: 1px solid transparent;
padding: 0 12px;
@@ -502,7 +489,7 @@
background: var(--b3-theme-surface);
color: var(--b3-theme-on-surface);
font-size: 12px;
- line-height: 1.4;
+ line-height: 1.5;
white-space: pre-wrap;
word-break: break-all;
max-height: 120px;
@@ -604,25 +591,6 @@
opacity: 0.5;
}
-.agent-chat__input {
- width: 100%;
- resize: none;
- min-height: 60px;
- font-size: 14px;
- line-height: 1.5;
- border: 1px solid var(--b3-border-color);
- border-radius: var(--b3-border-radius-b);
- padding: 8px 12px;
- outline: none;
- background: var(--b3-theme-surface);
- color: var(--b3-theme-on-surface);
- box-sizing: border-box;
-}
-
-.agent-chat__input:focus {
- border-color: var(--b3-theme-primary);
-}
-
.agent-chat__buttons {
display: flex;
gap: 8px;
@@ -807,7 +775,7 @@
.agent-chat__question-option-desc {
font-size: 12px;
color: var(--b3-theme-on-surface-light);
- line-height: 1.4;
+ line-height: 1.5;
}
.agent-chat__question-custom {