fix(web): keep tool timestamps before disclosure chevrons (#12152)

This commit is contained in:
Yash Singh authored and GitHub committed 2026-09-16 19:44:27 -03:00
1 parent 22539f2a42
commit ed12389794
1 file changed
+3 -3
@@ -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} />
<span
className={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 ? (