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): 折叠态侧边栏底部留出 focus ring 空间

Shinku2e13ddd4bb70
diff --git a/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts b/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts
index 4db379f777..8ace8669df 100644
--- a/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts
+++ b/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts
@@ -143,7 +143,7 @@ describe('UserInfoSection — mobile download entry', () => {
it('keeps the same entry and dialog available in the collapsed sidebar', () => {
expect(source).toContain(
- 'className="mt-auto flex h-[72px] flex-col items-center justify-center gap-1 px-3"',
+ 'className="mt-auto flex h-[76px] flex-col items-center justify-center gap-1 px-3"',
);
expect(source).toContain('{mobileDownloadEntry}');
});
diff --git a/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx b/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx
index 056b019a6f..6e92589737 100644
--- a/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx
+++ b/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx
@@ -108,7 +108,7 @@ export function UserInfoSection({ isCollapsed, onOpenUpdateNotice }: UserInfoSec
if (isCollapsed) {
return (
<>
- <div className="mt-auto flex h-[72px] flex-col items-center justify-center gap-1 px-3">
+ <div className="mt-auto flex h-[76px] flex-col items-center justify-center gap-1 px-3">
<button
onClick={handleClick}
role="link"