fix(ux): balance question-card spacing and drop stray SMTP icon dot (#5794)

This commit is contained in:
Waleed
2026-07-20 19:05:04 -07:00
committed by GitHub
parent 418722559d
commit 644afd2d52
2 changed files with 8 additions and 2 deletions
@@ -232,8 +232,15 @@ const AssistantMessageRow = memo(function AssistantMessageRow({
questionDismissed,
})
// A visible question card (active or answered recap) sits 12px below the
// preceding prose (chat-content's `space-y-3`). The row's default `pb-6`
// would leave 24px underneath — asymmetric. Shrink the trailing gap to match
// so the card breathes equally top and bottom. Dismissed cards fall back to
// the normal message rhythm (they render the standard actions row instead).
const showsQuestionCard = endsWithQuestion && !questionDismissed
return (
<div className={rowClassName}>
<div className={cn(rowClassName, showsQuestionCard && 'pb-3')}>
<MessageContent
blocks={blocks}
fallbackContent={message.content}
-1
View File
@@ -5737,7 +5737,6 @@ export function SmtpIcon(props: SVGProps<SVGSVGElement>) {
strokeLinecap='round'
strokeLinejoin='round'
/>
<circle cx='24' cy='6' r='4' fill='currentColor' stroke='none' />
</svg>
)
}