TypeScript
fix(web): keep tool timestamps before disclosure chevrons (#12152)
Yash Singhed123897943e
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsxindex 27443ee2ed7..a76f30434a3 100644--- a/apps/web/src/components/chat/MessagesTimeline.tsx+++ b/apps/web/src/components/chat/MessagesTimeline.tsx@@ -2114,8 +2114,8 @@ function RevertUserMessageButton({* carries `group/timeline-row`; hover or focus on an existing control reveals* the time without adding a tab stop. Hidden timestamps stay outside the row* layout. Visibility changes immediately so leaving flow cannot overlap text- * during a fade-out. Render it as the row's rightmost flex child so the- * revealed time lands at the right edge, clear of disclosure controls.+ * during a fade-out. Place it before any trailing disclosure control so+ * revealing the time does not move the chevron.*/function TimelineRowTimestamp({createdAt,@@ -4677,6 +4677,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {!toolIconAcceptsTint(entryIconName, entryToolIcon) ? (<XIcon aria-hidden className={cn("size-3 shrink-0", failedToolIconClassName)} />) : null}+ <TimelineRowTimestamp createdAt={workEntry.createdAt} timestampFormat={timestampFormat} /><spanclassName={cn("flex size-4 shrink-0 items-center justify-center",@@ -4691,7 +4692,6 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {)}/></span>- <TimelineRowTimestamp createdAt={workEntry.createdAt} timestampFormat={timestampFormat} /></div></div>{expanded && viewedImage && threadRef ? (