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): restore create page scrolling (#1054)

codeingforcoffee70fb30e5f84d
diff --git a/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts b/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts
index 286e6c00e1..a56005b478 100644
--- a/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts
+++ b/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts
@@ -49,6 +49,12 @@ describe('NewMakerDraftRoute CREATE AGENT visual contract', () => {
it('centers the CREATE AGENT content group without reintroducing route chrome', () => {
expect(source).toContain('items-center justify-start');
+ const shellBlock = source.slice(
+ source.indexOf('data-testid="create-agent-shell"'),
+ source.indexOf('data-testid="create-agent-main"'),
+ );
+ expect(shellBlock).toContain('overflow-x-hidden overflow-y-auto');
+ expect(shellBlock).not.toContain('overflow-hidden');
// 用户改稿 2026-07-21:摘掉 268px 封顶(Figma 定稿画框高度的遗留),大窗口下顶距随 28vh
// 等比增长,内容组不再"偏高";96px 下限保留,小窗口行为不变。比例为可调参数。
// 用户改稿 2026-07-21 二连:①摘 268px 封顶(顶距随 28vh 等比);②叠加 --content-header-h
diff --git a/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx b/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx
index 6757c84712..78eab6d21c 100644
--- a/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx
+++ b/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx
@@ -2945,7 +2945,7 @@ export function NewMakerDraftRoute() {
<div
data-testid="create-agent-shell"
className={cn(
- 'relative flex h-full w-full items-center justify-center overflow-hidden bg-[var(--surface)] px-3 py-8', // px-3:外壳12+main32=44,与技能页(32+12滚动条槽)对齐(实测定稿 2026-07-19)
+ 'relative flex h-full w-full items-center justify-center overflow-x-hidden overflow-y-auto bg-[var(--surface)] px-3 py-8', // px-3:外壳12+main32=44,与技能页(32+12滚动条槽)对齐(实测定稿 2026-07-19)
)}
>
{/* 整页拖入遮罩(与 CCAgentSessionView 聊天区同款 token):提示文案由