mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
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:
@@ -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]}
|
||||
|
||||
Reference in New Issue
Block a user