Skip to content

Commit dbaf622

Browse files
committed
Fix for duration squashing
1 parent 6e6eddb commit dbaf622

File tree

1 file changed

+8
-5
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam

1 file changed

+8
-5
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,19 +1239,22 @@ function SpanWithDuration({
12391239
style={{ backgroundImage: `url(${tileBgPath})`, backgroundSize: "8px 8px" }}
12401240
/>
12411241
)}
1242-
<div
1242+
<motion.div
12431243
className={cn(
1244-
"sticky left-0 z-10 transition group-hover:opacity-100",
1244+
"sticky left-0 z-10 transition-opacity group-hover:opacity-100",
12451245
!showDuration && "opacity-0"
12461246
)}
12471247
>
1248-
<div className="whitespace-nowrap rounded-sm px-1 py-0.5 text-xxs text-text-bright text-shadow-custom">
1248+
<motion.div
1249+
className="whitespace-nowrap rounded-sm px-1 py-0.5 text-xxs text-text-bright text-shadow-custom"
1250+
layout="position"
1251+
>
12491252
{formatDurationMilliseconds(props.durationMs, {
12501253
style: "short",
12511254
maxDecimalPoints: props.durationMs < 1000 ? 0 : 1,
12521255
})}
1253-
</div>
1254-
</div>
1256+
</motion.div>
1257+
</motion.div>
12551258
</motion.div>
12561259
</Timeline.Span>
12571260
);

0 commit comments

Comments
 (0)