The best way to control Claude Code, Codex and more from any computer or phone
fix(web): replace turn strip overlay gradients with mask-image fade (#1949)
Guilherme Vieira committed
Apr 13, 2026 at 09:11 UTC
57d7746a5d844281caae451702475d7bcf967b9d
1 file changed
+7
-6
apps/web/src/components/DiffPanel.tsx
+7
-6
@@ -429,12 +429,6 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
429
const headerRow = (
430
<>
431
<div className="relative min-w-0 flex-1 [-webkit-app-region:no-drag]">
432
- {canScrollTurnStripLeft && (
433
- <div className="pointer-events-none absolute inset-y-0 left-8 z-10 w-7 bg-linear-to-r from-card to-transparent" />
434
- )}
435
- {canScrollTurnStripRight && (
436
- <div className="pointer-events-none absolute inset-y-0 right-8 z-10 w-7 bg-linear-to-l from-card to-transparent" />
437
- )}
432
<button
433
type="button"
434
className={cn(
@@ -466,6 +460,13 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {
460
<div
461
ref={turnStripRef}
462
className="turn-chip-strip flex gap-1 overflow-x-auto px-8 py-0.5"
463
+ style={
464
+ canScrollTurnStripLeft || canScrollTurnStripRight
465
+ ? {
466
+ maskImage: `linear-gradient(to right, ${canScrollTurnStripLeft ? "transparent 24px, black 72px" : "black"}, ${canScrollTurnStripRight ? "black calc(100% - 72px), transparent calc(100% - 24px)" : "black"})`,
467
+ }
468
+ : undefined
469
+ }
470
onWheel={onTurnStripWheel}
471
>
472
<button