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 <farion1231@gmail.com>
This commit is contained in:
Loocor
2026-05-26 17:35:13 +08:00
committed by GitHub
parent 910ca3b40e
commit 62928c62bc
+1 -1
View File
@@ -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]}