diff --git a/src/components/ProviderList.tsx b/src/components/ProviderList.tsx index 3eebdec..2394183 100644 --- a/src/components/ProviderList.tsx +++ b/src/components/ProviderList.tsx @@ -320,11 +320,10 @@ const ProviderList: React.FC = ({
- {/* VS Code 按钮占位容器 - 始终保持空间,避免布局跳动 */} -
- {appType === "codex" && - provider.category !== "official" && - isCurrent && ( + {/* 同步按钮占位容器 - 只在对应模式下渲染,避免布局跳动 */} + {appType === "codex" ? ( +
+ {provider.category !== "official" && isCurrent && ( )} +
+ ) : null} - {appType === "claude" && - provider.category !== "official" && - isCurrent && ( + {appType === "claude" ? ( +
+ {provider.category !== "official" && isCurrent && ( )} -
+
+ ) : null}