Skip to content

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

:art: Improve Agent input controls responsive layout https://github.com/siyuan-note/siyuan/issues/17797

Daniel8f4f781b0536
diff --git a/app/src/assets/scss/business/_ai_agent.scss b/app/src/assets/scss/business/_ai_agent.scss
index fae37016f1..16bc0e366e 100644
--- a/app/src/assets/scss/business/_ai_agent.scss
+++ b/app/src/assets/scss/business/_ai_agent.scss
@@ -691,7 +691,8 @@
padding: 4px 8px;
background-image: none;
white-space: nowrap;
- flex-shrink: 0;
+ flex: 0 1 auto;
+ min-width: 30px;
&-icon {
height: 14px;
@@ -703,6 +704,7 @@
&-label {
overflow: hidden;
text-overflow: ellipsis;
+ min-width: 0;
}
}
@@ -713,7 +715,8 @@
padding: 4px 8px;
background-image: none;
white-space: nowrap;
- min-width: 0;
+ flex: 0 1 auto;
+ min-width: 30px;
&-icon {
height: 14px;
@@ -737,17 +740,20 @@
padding: 4px 8px;
background-image: none;
white-space: nowrap;
- flex-shrink: 0;
+ flex: 0 1 auto;
+ min-width: 30px;
&-icon {
height: 14px;
width: 14px;
color: var(--b3-theme-on-surface);
+ flex-shrink: 0;
}
&-label {
overflow: hidden;
text-overflow: ellipsis;
+ min-width: 0;
}
}