Cap title and description editor width

Both used field-sizing:content with only max-w-full, which doesn't
reliably clamp a long single-line value and could push the header row
wider than its container. Add an explicit sm:max-w-xl ceiling on both.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzyfRyA7h5rs5SCAahLAWd
This commit is contained in:
2026-08-30 21:11:27 +02:00
co-authored by Claude Sonnet 5
parent 26897e1621
commit a0211f90e4
2 changed files with 2 additions and 2 deletions
@@ -60,7 +60,7 @@ export function SessionDescriptionEditor({
placeholder="Add a description..." placeholder="Add a description..."
aria-label="Session description" aria-label="Session description"
rows={1} rows={1}
className="min-w-0 max-w-full flex-1 resize-none border-b-2 border-transparent bg-transparent text-sm text-muted-foreground outline-none transition-colors placeholder:text-muted-foreground/60 hover:border-b-border focus:border-b-primary focus:text-foreground [field-sizing:content]" className="max-w-full min-w-0 flex-1 resize-none border-b-2 border-transparent bg-transparent text-sm text-muted-foreground outline-none transition-colors placeholder:text-muted-foreground/60 hover:border-b-border focus:border-b-primary focus:text-foreground sm:max-w-xl [field-sizing:content]"
/> />
<div className="relative mt-0.5 flex size-4 shrink-0 items-center justify-center"> <div className="relative mt-0.5 flex size-4 shrink-0 items-center justify-center">
<Loader2 <Loader2
+1 -1
View File
@@ -52,7 +52,7 @@ export function SessionTitleEditor({ sessionId, initialName }: { sessionId: numb
onChange={(e) => setValue(e.target.value)} onChange={(e) => setValue(e.target.value)}
placeholder={`Session #${sessionId}`} placeholder={`Session #${sessionId}`}
aria-label="Session name" aria-label="Session name"
className="min-w-0 max-w-full border-b-2 border-transparent bg-transparent font-heading text-2xl font-semibold text-foreground outline-none transition-colors placeholder:text-muted-foreground/70 hover:border-b-border focus:border-b-primary [field-sizing:content]" className="max-w-full min-w-0 border-b-2 border-transparent bg-transparent font-heading text-2xl font-semibold text-foreground outline-none transition-colors placeholder:text-muted-foreground/70 hover:border-b-border focus:border-b-primary sm:max-w-xl [field-sizing:content]"
/> />
<div className="relative flex size-4 shrink-0 items-center justify-center"> <div className="relative flex size-4 shrink-0 items-center justify-center">
<Loader2 <Loader2