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} +