TypeScript
fix(web): long pending-question headers truncate instead of overflowing (#27078)
toni92-beep1b9437f6abc9
diff --git a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsxindex e3e14c4a840..60ee931fe5f 100644--- a/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx+++ b/apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx@@ -193,7 +193,11 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(className="px-4 pt-1.5"><ComposerBanner.Content>- <span className="shrink-0 text-muted-foreground">{activeQuestion.header}</span>+ <span+ className={cn("min-w-0 truncate text-muted-foreground", isCollapsed && "max-w-1/2")}+ >+ {activeQuestion.header}+ </span>{isCollapsed ? (<><ComposerBanner.Separator />