Skip to content

Commit f2247f0

Browse files
committed
Align nested tool call status rows
1 parent e4e5d59 commit f2247f0

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/agent-group/tool-call-item.tsx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,19 +236,28 @@ export function ToolCallItem({
236236
}
237237

238238
return (
239-
<div className='flex min-w-0 items-center gap-[6px] pl-6'>
240-
{BlockIcon && (
241-
<BlockIcon
242-
className='size-[14px] flex-shrink-0 text-[var(--text-icon)]'
243-
style={getBareIconStyle(BlockIcon)}
244-
/>
245-
)}
239+
/* Same left geometry as the agent-group header (16px slot + gap-2): every
240+
row's text lands on the 24px-per-level grid. The slot renders even when
241+
the tool has no icon — internal tools (grep, read, edit_workflow) were
242+
starting 20px left of integration rows, giving a mixed lane three
243+
different text edges. */
244+
<div className='flex min-w-0 items-center gap-2 pl-6'>
245+
<div className='flex size-[16px] flex-shrink-0 items-center justify-center'>
246+
{BlockIcon && (
247+
<BlockIcon
248+
className='size-[14px] text-[var(--text-icon)]'
249+
style={getBareIconStyle(BlockIcon)}
250+
/>
251+
)}
252+
</div>
246253
{isExecuting ? (
247-
<ShimmerText className='min-w-0 truncate text-[13px] [--shimmer-rest:var(--text-secondary)]'>
254+
<ShimmerText className='min-w-0 truncate text-[13px] leading-[18px] [--shimmer-rest:var(--text-secondary)]'>
248255
{title}
249256
</ShimmerText>
250257
) : (
251-
<span className='min-w-0 truncate text-[13px] text-[var(--text-secondary)]'>{title}</span>
258+
<span className='min-w-0 truncate text-[13px] text-[var(--text-secondary)] leading-[18px]'>
259+
{title}
260+
</span>
252261
)}
253262
</div>
254263
)

bun.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)