Skip to content

Commit 7b6c86f

Browse files
improvement(mothership): stack the stopped status above the actions row
1 parent fb10473 commit 7b6c86f

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -986,18 +986,17 @@ function MessageContentInner({
986986
// The settled tail takes the slot's place in the SAME render and at the
987987
// SAME extent (TAIL_REGION_CLASSES), so the swap is height-neutral by
988988
// construction — no reflow for the pinned scroller to absorb. A stopped
989-
// turn shares the ONE region (status left, actions right); stacking two
990-
// regions would double the tail and break neutrality.
989+
// turn stacks a second region (status row above the actions); that +46px
990+
// is deliberate — the teardown's eased follow glides it into view, and
991+
// the stacked layout beats a combined status/actions row visually.
991992
<>
992-
{lastSegment?.type === 'stopped' ? (
993+
{lastSegment?.type === 'stopped' && (
993994
<div className={cn(TAIL_REGION_CLASSES, 'gap-[8px]')}>
994995
<CircleStop className='size-[16px] flex-shrink-0 text-[var(--text-icon)]' />
995996
<span className='text-[14px] text-[var(--text-body)]'>Stopped by user</span>
996-
{actions && <div className='ml-auto'>{actions}</div>}
997997
</div>
998-
) : (
999-
actions && <div className={TAIL_REGION_CLASSES}>{actions}</div>
1000998
)}
999+
{actions && <div className={TAIL_REGION_CLASSES}>{actions}</div>}
10011000
</>
10021001
)}
10031002
</div>

0 commit comments

Comments
 (0)