Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(web): replace turn strip overlay gradients with mask-image fade (#1949)
Guilherme Vieira57d7746a5d84
diff --git a/apps/web/src/components/DiffPanel.tsx b/apps/web/src/components/DiffPanel.tsxindex 63a5231f7..e6dbb57cc 100644--- a/apps/web/src/components/DiffPanel.tsx+++ b/apps/web/src/components/DiffPanel.tsx@@ -429,12 +429,6 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {const headerRow = (<><div className="relative min-w-0 flex-1 [-webkit-app-region:no-drag]">- {canScrollTurnStripLeft && (- <div className="pointer-events-none absolute inset-y-0 left-8 z-10 w-7 bg-linear-to-r from-card to-transparent" />- )}- {canScrollTurnStripRight && (- <div className="pointer-events-none absolute inset-y-0 right-8 z-10 w-7 bg-linear-to-l from-card to-transparent" />- )}<buttontype="button"className={cn(@@ -466,6 +460,13 @@ export default function DiffPanel({ mode = "inline" }: DiffPanelProps) {<divref={turnStripRef}className="turn-chip-strip flex gap-1 overflow-x-auto px-8 py-0.5"+ style={+ canScrollTurnStripLeft || canScrollTurnStripRight+ ? {+ maskImage: `linear-gradient(to right, ${canScrollTurnStripLeft ? "transparent 24px, black 72px" : "black"}, ${canScrollTurnStripRight ? "black calc(100% - 72px), transparent calc(100% - 24px)" : "black"})`,+ }+ : undefined+ }onWheel={onTurnStripWheel}><button