Skip to content

Commit 4355efe

Browse files
waleedlatif1claude
andcommitted
fix(logs): align trace tree rows to 14px content grid
Chevron at depth 0 and the timeline bars now sit on the same 14px left/right grid as the trace view's header strip and the rest of the log details panel, removing the stagger where bars extended further left than chevrons and the chevron appeared cramped against the panel edge. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d03f84b commit 4355efe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-view

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/trace-view/trace-view.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { useCodeViewerFeatures } from '@/hooks/use-code-viewer'
3838
const DEFAULT_BLOCK_COLOR = '#6b7280'
3939
const TREE_PANE_WIDTH = 300
4040
const INDENT_PX = 12
41-
const ROW_BASE_PADDING_LEFT = 12
41+
const ROW_BASE_PADDING_LEFT = 14
4242
const MIN_BAR_PCT = 0.5
4343

4444
interface TraceViewProps {
@@ -344,7 +344,7 @@ const TraceTreeRow = memo(function TraceTreeRow({
344344
aria-level={depth + 1}
345345
>
346346
<div
347-
className='flex min-w-0 items-center gap-1.5 pt-1 pr-2'
347+
className='flex min-w-0 items-center gap-1.5 pt-1 pr-3.5'
348348
style={{ paddingLeft: ROW_BASE_PADDING_LEFT + depth * INDENT_PX }}
349349
>
350350
{canExpand ? (
@@ -409,7 +409,7 @@ const TraceTreeRow = memo(function TraceTreeRow({
409409
{formatDuration(duration, { precision: 2 })}
410410
</span>
411411
</div>
412-
<div className='pt-[3px] pr-2 pb-[5px] pl-2'>
412+
<div className='px-3.5 pt-[3px] pb-[5px]'>
413413
<div className='relative h-[3px] w-full overflow-hidden rounded-full bg-[var(--border)]'>
414414
<div
415415
className='absolute h-full rounded-full'

0 commit comments

Comments
 (0)