Skip to content

Commit 39eb60a

Browse files
committed
fix(webapp): blank-state watch card matches the hero composer width
The px-3 inset belongs to the chat's docked placement, not the card — in the hero it doubled the inset and the card came out narrower than the field.
1 parent 8c897ad commit 39eb60a

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

apps/webapp/app/components/dashboard-agent/DashboardAgentChat.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ export function DashboardAgentChat({
405405
resolveUri={resolveUri}
406406
/>
407407
)}
408-
{watchCard}
408+
{/* Inset to line up with the docked composer below it. */}
409+
{watchCard ? <div className="px-3 pb-2">{watchCard}</div> : null}
409410
{/* The Free plan's message cap occupies the composer slot: at the cap the
410411
composer is replaced by the upgrade block (a composer you can't send
411412
from is worse than none), and under it the composer is followed by the

apps/webapp/app/components/dashboard-agent/DashboardAgentPanel.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -490,17 +490,18 @@ export function DashboardAgentPanel({
490490
}
491491
}, [watchDraft, active?.chatId, actionPath, loadHistory]);
492492

493+
// Bare, placement-agnostic: the chat insets it to match its docked composer,
494+
// the hero's composer slot is already inset, so a wrapper here would make the
495+
// card narrower than the field it sits above.
493496
const watchCard = watchDraft ? (
494-
<div className="px-3 pb-2">
495-
<WatchCard
496-
draft={watchDraft}
497-
onChange={setWatchDraft}
498-
onSubmit={() => void submitWatch()}
499-
onCancel={dismissWatchCard}
500-
pending={watchPending}
501-
error={watchError}
502-
/>
503-
</div>
497+
<WatchCard
498+
draft={watchDraft}
499+
onChange={setWatchDraft}
500+
onSubmit={() => void submitWatch()}
501+
onCancel={dismissWatchCard}
502+
pending={watchPending}
503+
error={watchError}
504+
/>
504505
) : null;
505506

506507
const newChat = useCallback(() => {

0 commit comments

Comments
 (0)