From a3c143070e67006e8351c34d059644b8dd6262ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 18 Mar 2025 17:01:25 -0600 Subject: [PATCH] Don't show hover styling when a line can't be commented on - outside of reviews - when there is already a comment on that line --- src/components/Diff.svelte | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/Diff.svelte b/src/components/Diff.svelte index 887927d50..9599a6b43 100644 --- a/src/components/Diff.svelte +++ b/src/components/Diff.svelte @@ -273,10 +273,13 @@ position: relative; cursor: cell; } - .left:hover, - .right:hover, - .left:active, - .right:active { + .selection-disabled { + cursor: default; + } + .left:hover:not(.selection-disabled), + .right:hover:not(.selection-disabled), + .left:active:not(.selection-disabled), + .right:active:not(.selection-disabled) { color: var(--color-foreground-contrast); } .sign { @@ -356,6 +359,7 @@ isSelected(filePath(file, "left"), hunkIdx, lineIdx)}>
{ @@ -368,6 +372,7 @@
{