@@ -139,12 +139,14 @@ import {
139139 XIcon ,
140140 ZapIcon ,
141141} from "lucide-react" ;
142+ import { ChevronDown , ChevronRight } from "lucide" ;
142143import type {
143144 ComposerContextId ,
144145 ComposerContextRecord ,
145146 KnownComposerContextRecord ,
146147} from "@t3tools/contracts" ;
147148import { Button , InlineButton } from "../ui/button" ;
149+ import { MorphIcon } from "~/components/MorphIcon" ;
148150import { useAssetUrlRefresh , useAssetUrls , useAssetUrlState } from "../../assets/assetUrls" ;
149151import { MediaVideoPlayer } from "../media/MediaVideoPlayer" ;
150152import { getVirtualizedScrollFadeClassName } from "../ui/scroll-area" ;
@@ -2424,7 +2426,6 @@ function TimelineRowTimestamp({
24242426
24252427function TurnFoldTimelineRow ( { row } : { row : Extract < TimelineRow , { kind : "turn-fold" } > } ) {
24262428 const ctx = use ( TimelineRowCtx ) ;
2427- const Icon = row . expanded ? ChevronDownIcon : ChevronRightIcon ;
24282429
24292430 return (
24302431 < div className = "group/timeline-row relative flex items-center gap-1 border-b border-border/60 pb-2 pe-0.5 pt-1" >
@@ -2436,7 +2437,7 @@ function TurnFoldTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "turn-
24362437 className = "flex cursor-pointer select-none items-center gap-1 rounded-md px-1 text-sm leading-relaxed text-muted-foreground tabular-nums transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
24372438 >
24382439 < span > { row . label } </ span >
2439- < Icon className = "size-3.5" />
2440+ < MorphIcon className = "size-3.5" icon = { row . expanded ? ChevronDown : ChevronRight } />
24402441 </ button >
24412442 < TimelineRowTimestamp
24422443 createdAt = { row . createdAt }
@@ -2449,7 +2450,6 @@ function TurnFoldTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "turn-
24492450
24502451function AttemptFoldTimelineRow ( { row } : { row : Extract < TimelineRow , { kind : "attempt-fold" } > } ) {
24512452 const ctx = use ( TimelineRowCtx ) ;
2452- const Icon = row . expanded ? ChevronDownIcon : ChevronRightIcon ;
24532453
24542454 return (
24552455 < button
@@ -2460,7 +2460,10 @@ function AttemptFoldTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "at
24602460 onClick = { ( ) => ctx . onToggleAttemptFold ( row . attemptId ) }
24612461 className = "flex w-full cursor-pointer select-none items-center gap-2 rounded-md border border-border/60 bg-muted/20 px-2.5 py-2 text-left transition-colors hover:bg-muted/35 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
24622462 >
2463- < Icon className = "size-3.5 shrink-0 text-muted-foreground" />
2463+ < MorphIcon
2464+ className = "size-3.5 shrink-0 text-muted-foreground"
2465+ icon = { row . expanded ? ChevronDown : ChevronRight }
2466+ />
24642467 < span className = "text-xs font-medium text-foreground/80" > { row . label } </ span >
24652468 < span className = "text-2xs text-muted-foreground" > Partial output retained</ span >
24662469 </ button >
0 commit comments