Skip to content

Commit 561c329

Browse files
committed
fix(web): keep tool timestamps before disclosure chevrons
1 parent dda44ed commit 561c329

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/web/src/components/chat/MessagesTimeline.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,8 +2110,8 @@ function RevertUserMessageButton({
21102110
* carries `group/timeline-row`; hover or focus on an existing control reveals
21112111
* the time without adding a tab stop. Hidden timestamps stay outside the row
21122112
* layout. Visibility changes immediately so leaving flow cannot overlap text
2113-
* during a fade-out. Render it as the row's rightmost flex child so the
2114-
* revealed time lands at the right edge, clear of disclosure controls.
2113+
* during a fade-out. Place it before any trailing disclosure control so
2114+
* revealing the time does not move the chevron.
21152115
*/
21162116
function TimelineRowTimestamp({
21172117
createdAt,
@@ -4556,6 +4556,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
45564556
!toolIconAcceptsTint(entryIconName, entryToolIcon) ? (
45574557
<XIcon aria-hidden className={cn("size-3 shrink-0", failedToolIconClassName)} />
45584558
) : null}
4559+
<TimelineRowTimestamp createdAt={workEntry.createdAt} timestampFormat={timestampFormat} />
45594560
<span
45604561
className={cn(
45614562
"flex size-4 shrink-0 items-center justify-center",
@@ -4570,7 +4571,6 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
45704571
)}
45714572
/>
45724573
</span>
4573-
<TimelineRowTimestamp createdAt={workEntry.createdAt} timestampFormat={timestampFormat} />
45744574
</div>
45754575
</div>
45764576
{expanded && viewedImage && threadRef ? (

0 commit comments

Comments
 (0)