From 62928c62bc487cc972ecca9da80acb41081b570d Mon Sep 17 00:00:00 2001 From: Loocor Date: Tue, 26 May 2026 17:35:13 +0800 Subject: [PATCH] fix(ui): remove fixed width constraint on AppSwitcher text to prevent clipping (#3161) * fix(ui): remove fixed width constraint on AppSwitcher text to prevent clipping App names like "Claude Desktop" were being clipped by the max-w-[90px] constraint on the text label. Changed to max-w-none so text adapts to content width. Also removed overflow-x-hidden from the parent toolbar container to prevent clipping of the wider content. Fixes text truncation in the top-right app switcher segmented control. * - fix(ui): preserve AppSwitcher compact overflow behavior - Restore toolbar overflow clipping required by useAutoCompact. - Cap expanded AppSwitcher labels at 120px so Claude Desktop fits while compact animation remains smooth. --------- Co-authored-by: Jason --- src/components/AppSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AppSwitcher.tsx b/src/components/AppSwitcher.tsx index 5328562f2..3ffdb09b8 100644 --- a/src/components/AppSwitcher.tsx +++ b/src/components/AppSwitcher.tsx @@ -117,7 +117,7 @@ export function AppSwitcher({ "transition-all duration-200 whitespace-nowrap overflow-hidden", compact ? "max-w-0 opacity-0 ml-0" - : "max-w-[90px] opacity-100 ml-2", + : "max-w-[120px] opacity-100 ml-2", )} > {appDisplayName[app]}