| ... | @@ -429,12 +429,6 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) { | ... | @@ -429,12 +429,6 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) { |
| 429 | const headerRow = ( | 429 | const headerRow = ( |
| 430 | <> | 430 | <> |
| 431 | <div className="relative min-w-0 flex-1 [-webkit-app-region:no-drag]"> | 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 | )} | | |
| 438 | <button | 432 | <button |
| 439 | type="button" | 433 | type="button" |
| 440 | className={cn( | 434 | className={cn( |
| ... | @@ -466,6 +460,13 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) { | ... | @@ -466,6 +460,13 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) { |
| 466 | <div | 460 | <div |
| 467 | ref={turnStripRef} | 461 | ref={turnStripRef} |
| 468 | className="turn-chip-strip flex gap-1 overflow-x-auto px-8 py-0.5" | 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 | } |
| 469 | onWheel={onTurnStripWheel} | 470 | onWheel={onTurnStripWheel} |
| 470 | > | 471 | > |
| 471 | <button | 472 | <button |