Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 修复 worker 菜单列表在极小窗口收缩为零

Shinkuaeb75ceeabef
diff --git a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
index 91db8a6da5..cf9b2a5bdc 100644
--- a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx
@@ -550,7 +550,7 @@ function WorkerLayoutMenu({
</div>
{/* Worker rows */}
- <div className="flex min-h-0 flex-col overflow-y-auto">
+ <div className="flex flex-col">
{workers.map((w) => {
const isFocused = w.workerId === selectedWorkerId || w.focused;
const isError = w.status === 'error';
@@ -1175,7 +1175,7 @@ export function RolePillDropdown({
</div>
{/* Worker rows */}
- <div className="flex min-h-0 flex-col overflow-y-auto">
+ <div className="flex flex-col">
{workers.map((w) => {
const isFocused = w.workerId === selectedWorkerId || w.focused;
// error 行整体描红(优先于 focused 高亮), 软红底 + 红左边, 与 tabs 布局一致。