From 0dfb7b85833aec6b26e0ae02452ecc19a9494629 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 30 Apr 2026 14:56:32 -0400 Subject: [PATCH] fix(ui): reserve leading chevron column so trace and leaf rows align Trace rows pushed the TIME column ~30px right because the expand chevron was an inline flex child while leaf rows had nothing in that position. Result: every column drifted right whenever a trace row was visible. Reserve a 16px slot at the start of every row (header + leaf + trace). Leaf rows render an empty span; trace rows render the chevron centered inside the slot. All columns now share the same x-coordinates regardless of row type. Refs #1138 --- ui/src/components/logs/logs-entry-list.tsx | 5 ++++- ui/src/components/logs/logs-row.tsx | 3 +++ ui/src/components/logs/logs-trace-row.tsx | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ui/src/components/logs/logs-entry-list.tsx b/ui/src/components/logs/logs-entry-list.tsx index b12c0b24..d672bb0a 100644 --- a/ui/src/components/logs/logs-entry-list.tsx +++ b/ui/src/components/logs/logs-entry-list.tsx @@ -24,8 +24,10 @@ export interface LogsEntryListProps { density?: RowDensity; } +// Leading 16px slot reserves space for the trace-expand chevron so that +// trace rows and standalone leaf rows align under the same column edges. const COLS_TEMPLATE = - 'grid grid-cols-[88px_64px_140px_minmax(0,1fr)_72px_112px] items-center gap-3 px-3'; + 'grid grid-cols-[16px_88px_64px_140px_minmax(0,1fr)_72px_112px] items-center gap-3 px-3'; export function LogsEntryList({ entries, @@ -102,6 +104,7 @@ export function LogsEntryList({ 'h-9 shrink-0 border-b border-border bg-muted/30 text-[12px] font-medium uppercase tracking-wide text-muted-foreground' )} > +