@devries-cameron20 / t3code Mirror · read-only / commits / 0bdb5a8c64
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 05:30 UTC

fix(web): show native caret and selection in file comments (#17554)

Fionn Gartlan committed Oct 18, 2026 at 21:08 UTC 0bdb5a8c64050bd36ba05cd4b220e5f75a0284f7
1 file changed +4 -2
apps/web/src/components/diffs/DiffCommentAnnotation.tsx
+4 -2
@@ -59,7 +59,7 @@ export function DiffCommentAnnotation({
59 return (
60 <div
61 data-diff-comment-annotation
62 - className="group/comment flex min-w-0 items-start gap-2.5 border-s-2 border-primary/55 bg-primary/[0.045] px-3 py-2.5 font-sans text-foreground"
62 + className="group/comment flex min-w-0 items-start gap-2.5 border-s-2 border-primary/55 bg-primary/[0.045] px-3 py-2.5 font-sans text-foreground selection:bg-primary selection:text-primary-foreground"
63 contentEditable={false}
64 onPointerDown={(event) => event.stopPropagation()}
65 >
@@ -81,10 +81,12 @@ export function DiffCommentAnnotation({
81 );
82 }
83
84 + // Editable file annotations inherit Pierre's transparent native caret and selection.
85 + // Comments use a native textarea, so they need their own visible text feedback.
86 return (
87 <div
88 data-diff-comment-annotation
87 - className="px-3 py-2 font-sans text-foreground"
89 + className="px-3 py-2 font-sans text-foreground caret-foreground selection:bg-primary selection:text-primary-foreground"
90 contentEditable={false}
91 onPointerDown={(event) => event.stopPropagation()}
92 >