Fix session title input's border offset and width

The -mx-2 trick pushed the hover/focus border noticeably left of the
text, and flex-1 stretched the input across the whole header row.
Tighten the offset to px-1.5/-ml-1.5 and size the input to its content
via field-sizing:content instead.

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 20:52:44 +02:00
co-authored by Claude Sonnet 5
parent 884ced7a47
commit 7bf4b3d4bf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ export default async function SessionDetailPage({ params }: { params: Promise<{
<div className="flex items-center justify-between gap-4">
<div className="min-w-0 flex-1">
<SessionTitleEditor sessionId={detail.session.id} initialName={detail.session.name} />
<p className="mt-1 px-2 text-sm text-muted-foreground">
<p className="mt-1 px-1.5 text-sm text-muted-foreground">
{detail.session.status} · {formatDuration(detail.session.durationMs)}
{detail.session.kind === "replay" && detail.replayedFromName !== undefined && (
<> · replayed from {detail.replayedFromName ?? `session #${detail.session.replayedSessionId}`}</>
@@ -50,7 +50,7 @@ export default async function SessionDetailPage({ params }: { params: Promise<{
)}
</p>
{detail.session.description && (
<p className="mt-1 px-2 text-sm text-muted-foreground">{detail.session.description}</p>
<p className="mt-1 px-1.5 text-sm text-muted-foreground">{detail.session.description}</p>
)}
</div>
{canReplay && (