The best way to control Claude Code, Codex and more from any computer or phone
fix(web): truncate project names only when needed (#17208)
Daniel Gurney committed
Oct 18, 2026 at 22:09 UTC
871c7b77576e2b419d3e48a717c288ef53083f66
1 file changed
+5
-2
apps/web/src/components/chat/DraftHeroHeadline.tsx
+5
-2
@@ -253,7 +253,8 @@ export function DraftHeroHeadline({
253
<ComboboxTrigger
254
render={<InlineButton tone="picker" />}
255
data-draft-project-trigger=""
256
- className="pointer-events-auto max-w-64 align-baseline"
256
+ // Leaves room for the trailing "?" so a truncated name keeps it on its line.
257
+ className="pointer-events-auto max-w-[calc(100%-1em)] align-baseline"
258
/>
259
}
260
>
@@ -354,7 +355,9 @@ export function DraftHeroHeadline({
355
{isScratchDraft ? (
356
<>What should we work on?</>
357
) : hasResolvedProject ? (
357
- <>What should we build in {projectSelector}?</>
358
+ <>
359
+ What should we build in <span className="whitespace-nowrap">{projectSelector}?</span>
360
+ </>
361
) : canChooseProject ? (
362
<>{projectSelector} to start</>
363
) : (