Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 恢复账号卡 rounded-xl 圆角并用 text-16 token 替代硬编码字号
Shinku21b16d8a7277
diff --git a/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts b/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.tsindex 8ace8669df..9f45dec944 100644--- a/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts+++ b/apps/desktop/src/renderer/__tests__/userInfoSectionHover.test.ts@@ -35,9 +35,9 @@ describe('UserInfoSection — outer wrapper takes over full-row hover', () => {expect(source).toContain('mt-auto pt-1');});- it('visible user card uses the tokenized capsule style with rectangular corners', () => {+ it('visible user card uses the tokenized capsule style with 12px container radius', () => {expect(source).toContain(- 'flex h-12 items-center border border-[var(--sidebar-user-card-border)] bg-[var(--sidebar-user-card-bg)] pl-3 pr-1.5',+ 'flex h-12 items-center rounded-xl border border-[var(--sidebar-user-card-border)] bg-[var(--sidebar-user-card-bg)] pl-3 pr-1.5',);});diff --git a/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx b/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsxindex 6e92589737..b53fbfaa68 100644--- a/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx+++ b/apps/desktop/src/renderer/components/sidebar/UserInfoSection.tsx@@ -172,10 +172,10 @@ export function UserInfoSection({ isCollapsed, onOpenUpdateNotice }: UserInfoSec<div className="mt-auto pt-1">{/* 胶囊整体承载 hover(方案 D):玻璃底色加深一档;悬停右侧操作按钮时用:has() 把胶囊底色还原,只让当前按钮高亮,避免双层叠色。- 横向填满容器、向下填满、无圆角(直角矩形)。 */}+ 横向填满容器、向下填满、12px 容器圆角(rounded-xl)。 */}<divclassName={cn(- 'flex h-12 items-center border border-[var(--sidebar-user-card-border)] bg-[var(--sidebar-user-card-bg)] pl-3 pr-1.5',+ 'flex h-12 items-center rounded-xl border border-[var(--sidebar-user-card-border)] bg-[var(--sidebar-user-card-bg)] pl-3 pr-1.5','transition-colors hover:bg-[var(--sidebar-user-card-bg-hover)]','has-[.flame-btn:hover]:bg-[var(--sidebar-user-card-bg)]','has-[.mobile-download-btn:hover]:bg-[var(--sidebar-user-card-bg)]',@@ -203,7 +203,7 @@ export function UserInfoSection({ isCollapsed, onOpenUpdateNotice }: UserInfoSec<divclassName={cn('flex h-10 w-10 items-center justify-center rounded-full',- 'border border-[var(--sidebar-user-card-border)] bg-[var(--sidebar-user-card-bg)] text-[16px] font-medium text-[var(--sidebar-user-card-text)]',+ 'border border-[var(--sidebar-user-card-border)] bg-[var(--sidebar-user-card-bg)] text-16 font-medium text-[var(--sidebar-user-card-text)]',)}>{showNotSignedInGlyph ? (