From d66d7fc5454d3e5a7a15f76c28d44183c4e2f48e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 6 Oct 2026 10:00:58 +0000 Subject: [PATCH] =?UTF-8?q?fix(desktop):=20=E5=B0=86=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=81=AF=E7=A7=BB=E5=88=B0=E4=BE=A7=E6=A0=8F?= =?UTF-8?q?=E5=8F=B3=E4=BE=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 实例名称与分组标题左对齐,连接状态灯改到名称右侧。 Co-authored-by: Shiroha --- .changeset/desktop-sidebar-status-right.md | 5 +++++ packages/desktop/src/renderer/components/Sidebar.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/desktop-sidebar-status-right.md diff --git a/.changeset/desktop-sidebar-status-right.md b/.changeset/desktop-sidebar-status-right.md new file mode 100644 index 00000000..e3642b40 --- /dev/null +++ b/.changeset/desktop-sidebar-status-right.md @@ -0,0 +1,5 @@ +--- +"@sfmc-bds/desktop": patch +--- + +实例状态灯移到侧栏右侧,实例名称与侧栏其余文字左对齐。 diff --git a/packages/desktop/src/renderer/components/Sidebar.tsx b/packages/desktop/src/renderer/components/Sidebar.tsx index ea97733d..5abdb364 100644 --- a/packages/desktop/src/renderer/components/Sidebar.tsx +++ b/packages/desktop/src/renderer/components/Sidebar.tsx @@ -20,7 +20,7 @@ export function profileSubtitle(profile: InstanceProfile): string { : `${profile.username ? `${profile.username}@` : ""}${profile.host}${profile.port && profile.port !== 22 ? `:${profile.port}` : ""} ${profile.os === "windows" ? "Windows" : "Linux"}`; } -/** 实例列表:每行一个实例(状态点 + 名称),当前实例高亮,悬停显示设置按钮 */ +/** 实例列表:每行一个实例,名称在左、状态点在右。当前实例高亮,悬停显示设置按钮 */ function InstanceList({ collapsed }: { collapsed: boolean }) { const { profiles, current, setCurrent, models, openProfileDialog } = useDesktop(); return ( @@ -55,9 +55,9 @@ function InstanceList({ collapsed }: { collapsed: boolean }) { aria-current={active ? "true" : undefined} onClick={() => setCurrent(profile.id)} > - {profile.name} +