Skip to content
TypeScript

fix(web): Compact chip fits on narrow composers (#27033)

oliver2274ff9a5ddc
diff --git a/apps/web/src/components/chat/ComposerPrimaryActions.tsx b/apps/web/src/components/chat/ComposerPrimaryActions.tsx
index 965c95d481e..a4a8993a703 100644
--- a/apps/web/src/components/chat/ComposerPrimaryActions.tsx
+++ b/apps/web/src/components/chat/ComposerPrimaryActions.tsx
@@ -371,7 +371,9 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
}
>
<Minimize2Icon aria-hidden="true" />
- {keepFullHistory ? "Keep" : "Compact"}
+ <span className="@max-[480px]/composer-surface:hidden">
+ {keepFullHistory ? "Keep" : "Compact"}
+ </span>
<span className="text-muted-foreground">{compactTokens}</span>
</TooltipTrigger>
<TooltipPopup>