Skip to content

Commit 9e47c5a

Browse files
thomaspblockcursoragent
authored andcommitted
fix(desktop): outline thread hover targets (#845)
Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
1 parent 5b57365 commit 9e47c5a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

desktop/src/features/messages/ui/MessageRow.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ export const MessageRow = React.memo(
316316
className={cn(
317317
"group/message relative rounded-2xl px-2 py-1 transition-colors",
318318
"flex items-start gap-2.5",
319+
isThreadReplyLayout &&
320+
"hover:ring-1 hover:ring-border/70 focus-within:ring-1 focus-within:ring-border/70",
319321
highlighted
320322
? "-mx-4 rounded-none px-6 before:absolute before:-inset-y-1.5 before:inset-x-0 before:animate-[route-target-highlight-fade_2s_ease-out_forwards] before:bg-primary/10 before:content-[''] motion-reduce:before:animate-none sm:-mx-6 sm:px-8"
321323
: "",

desktop/src/features/messages/ui/MessageThreadSummaryRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function MessageThreadSummaryRow({
9696
) : null}
9797

9898
<button
99-
className="group inline-flex w-fit max-w-full cursor-pointer items-center gap-1 text-left text-xs font-medium text-muted-foreground transition-[color,opacity] hover:text-foreground hover:opacity-90 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring"
99+
className="group relative inline-flex w-fit max-w-full cursor-pointer items-center gap-1 rounded-full text-left text-xs font-medium text-muted-foreground transition-[color,opacity] before:pointer-events-none before:absolute before:-inset-y-0.5 before:-left-0.5 before:-right-1.5 before:rounded-full before:content-[''] before:transition-shadow hover:text-foreground hover:opacity-90 hover:before:ring-1 hover:before:ring-border/70 focus-visible:outline-hidden focus-visible:before:ring-1 focus-visible:before:ring-ring"
100100
data-thread-head-id={message.id}
101101
data-testid="message-thread-summary"
102102
onClick={() => onOpenThread(message)}

0 commit comments

Comments
 (0)