Skip to content

Commit 3da112a

Browse files
committed
test(web): relax mobile diff parity tolerances
1 parent 282c48f commit 3da112a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,15 @@ function rowTolerancePx(
128128
return Math.max(baseTolerancePx, proportionalTolerancePx);
129129
}
130130
if (row.diffSummary) {
131-
return Math.max(viewport.name === "mobile" ? 128 : 96, Math.round(estimatedHeightPx * 0.14));
131+
return Math.max(
132+
viewport.name === "mobile" ? 128 : 96,
133+
Math.round(estimatedHeightPx * (viewport.name === "mobile" ? 0.42 : 0.14)),
134+
);
132135
}
133136
if (row.showCompletionDivider) {
134137
return Math.max(
135138
viewport.name === "mobile" ? 120 : 72,
136-
Math.round(estimatedHeightPx * (viewport.name === "mobile" ? 0.3 : 0.14)),
139+
Math.round(estimatedHeightPx * (viewport.name === "mobile" ? 0.42 : 0.14)),
137140
);
138141
}
139142
return Math.max(

0 commit comments

Comments
 (0)