Skip to content

Commit 644afd2

Browse files
authored
fix(ux): balance question-card spacing and drop stray SMTP icon dot (#5794)
1 parent 4187225 commit 644afd2

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,15 @@ const AssistantMessageRow = memo(function AssistantMessageRow({
232232
questionDismissed,
233233
})
234234

235+
// A visible question card (active or answered recap) sits 12px below the
236+
// preceding prose (chat-content's `space-y-3`). The row's default `pb-6`
237+
// would leave 24px underneath — asymmetric. Shrink the trailing gap to match
238+
// so the card breathes equally top and bottom. Dismissed cards fall back to
239+
// the normal message rhythm (they render the standard actions row instead).
240+
const showsQuestionCard = endsWithQuestion && !questionDismissed
241+
235242
return (
236-
<div className={rowClassName}>
243+
<div className={cn(rowClassName, showsQuestionCard && 'pb-3')}>
237244
<MessageContent
238245
blocks={blocks}
239246
fallbackContent={message.content}

apps/sim/components/icons.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5737,7 +5737,6 @@ export function SmtpIcon(props: SVGProps<SVGSVGElement>) {
57375737
strokeLinecap='round'
57385738
strokeLinejoin='round'
57395739
/>
5740-
<circle cx='24' cy='6' r='4' fill='currentColor' stroke='none' />
57415740
</svg>
57425741
)
57435742
}

0 commit comments

Comments
 (0)