From 0bcc04adce50392aca5e753cbda53c218143252d Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 28 Sep 2025 23:23:43 +0800 Subject: [PATCH] fix: eliminate layout shift when switching between Claude and Codex - Wrap VS Code sync button in fixed-width container to maintain stable layout - Only render the container in Codex mode to avoid unnecessary space in Claude mode - Change card transition from 'all' to specific properties (border-color, box-shadow) to prevent layout animations - These changes prevent the horizontal position jumping of provider cards during app switching --- src/components/ProviderList.tsx | 53 +++++++++++++++++---------------- src/lib/styles.ts | 2 +- 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/src/components/ProviderList.tsx b/src/components/ProviderList.tsx index 73a7e5e..dfe94ae 100644 --- a/src/components/ProviderList.tsx +++ b/src/components/ProviderList.tsx @@ -271,32 +271,35 @@ const ProviderList: React.FC = ({
- {appType === "codex" && - provider.category !== "official" && ( - - )} + : t("provider.applyToVSCode")} + + )} +
+ ) : null}