The best way to control Claude Code, Codex and more from any computer or phone
fix(web): chat tables and subagent rows line up (#24835)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Theo Browne committed
Oct 25, 2026 at 03:29 UTC
2d620f5dcc0fd257877362e1601070eb970a29fe
4 files changed
+23
-17
apps/web/src/components/chat/MarkdownTable.tsx
+2
-1
@@ -114,7 +114,8 @@ export function MarkdownTable({ children, ...props }: ComponentProps<"table">) {
114
{children}
115
</table>
116
</ScrollArea>
117
- <div className="mt-0.5 flex items-center justify-between select-none">
117
+ {/* Stays within the row's px-1: the chat lane clips sideways overflow. */}
118
+ <div className="mt-0.5 -mx-1 flex items-center justify-between select-none">
119
{hasClippedCells ? (
120
<Tooltip>
121
<TooltipTrigger
apps/web/src/components/chat/TimelineV2EventRow.tsx
+2
-1
@@ -251,11 +251,12 @@ const V2SubagentGroup = memo(function V2SubagentGroup({
251
return (
252
<WorkLogBlock continues={row.continuesWorkLog}>
253
<Collapsible open={expanded} onOpenChange={toggleExpanded} data-subagent-group>
254
+ {/* pr-3.25 matches the panel border, padding, and row inset so the times line up. */}
255
<CollapsibleTrigger
256
aria-label={label}
257
aria-description={statusSummary}
258
className={cn(
258
- "flex w-full min-w-0 items-center gap-3 py-2 text-left transition-opacity hover:opacity-100",
259
+ "flex w-full min-w-0 items-center gap-2.5 py-2 pr-3.25 text-left transition-opacity hover:opacity-100",
260
expanded || summary.active
261
? "text-foreground opacity-100"
262
: "text-muted-foreground opacity-55",
apps/web/src/components/chat/V2LifecycleRow.tsx
+8
-15
@@ -439,21 +439,7 @@ function SubagentTimelineLink(props: {
439
status={status ?? undefined}
440
/>
441
<span className="min-w-0 flex-1">
442
- <span className="flex items-baseline gap-2">
443
- <span className="min-w-0 truncate text-xs font-medium text-foreground">
444
- {props.title}
445
- </span>
446
- {detail !== null && (props.event !== undefined || status !== "completed") ? (
447
- <span
448
- className={cn(
449
- "shrink-0 text-3xs",
450
- failed ? "text-destructive" : "text-muted-foreground",
451
- )}
452
- >
453
- {statusLabel}
454
- </span>
455
- ) : null}
456
- </span>
442
+ <span className="block truncate text-xs font-medium text-foreground">{props.title}</span>
443
<span
444
className={cn(
445
"block text-2xs leading-relaxed",
@@ -469,6 +455,13 @@ function SubagentTimelineLink(props: {
455
)}
456
</span>
457
</span>
458
+ {detail !== null && (props.event !== undefined || status !== "completed") ? (
459
+ <span
460
+ className={cn("shrink-0 text-xs", failed ? "text-destructive" : "text-muted-foreground")}
461
+ >
462
+ {statusLabel}
463
+ </span>
464
+ ) : null}
465
<span className="shrink-0 text-xs text-muted-foreground tabular-nums">
466
{props.event ? props.event.timestamp : <SubagentElapsed agent={timing} />}
467
</span>
apps/web/src/index.css
+11
@@ -2135,10 +2135,21 @@ code {
2135
font-size: 0.75rem;
2136
}
2137
2138
+/* Top-aligned so wrapped rows share a first line, and the outer columns sit
2139
+ flush with the surrounding prose. */
2140
.chat-markdown th,
2141
.chat-markdown td {
2142
padding: 0.45rem 0.75rem;
2143
text-align: start;
2144
+ vertical-align: top;
2145
+}
2146
+
2147
+.chat-markdown :is(th, td):first-child {
2148
+ padding-inline-start: 0;
2149
+}
2150
+
2151
+.chat-markdown :is(th, td):last-child {
2152
+ padding-inline-end: 0;
2153
}
2154
2155
.chat-markdown thead th {