From 5d91c1bb2975ffa81feb8e180554095098a4f1e3 Mon Sep 17 00:00:00 2001 From: Dotta Date: Wed, 3 Jun 2026 17:03:28 +0000 Subject: [PATCH] Fix document comment panel layering --- ui/src/components/DocumentAnnotationPanel.tsx | 24 +++++++++---------- .../IssueDocumentAnnotations.test.tsx | 3 +++ .../components/IssueDocumentAnnotations.tsx | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/ui/src/components/DocumentAnnotationPanel.tsx b/ui/src/components/DocumentAnnotationPanel.tsx index c5fbc216..2edad684 100644 --- a/ui/src/components/DocumentAnnotationPanel.tsx +++ b/ui/src/components/DocumentAnnotationPanel.tsx @@ -75,7 +75,7 @@ export function DocumentAnnotationPanel(props: AnnotationPanelProps) { Comments on {props.documentKey} revision {props.documentRevisionNumber} @@ -95,7 +95,7 @@ export function DocumentAnnotationPanel(props: AnnotationPanelProps) { aria-label={`Annotations for ${props.documentKey.toUpperCase()}, revision ${props.documentRevisionNumber}`} data-testid="document-annotation-panel" className={cn( - "flex h-full max-h-[80vh] w-[360px] shrink-0 flex-col overflow-hidden rounded-none border border-border bg-card shadow-md", + "isolate flex h-full max-h-[80vh] w-[360px] shrink-0 flex-col overflow-hidden rounded-none border border-border bg-popover text-popover-foreground shadow-xl", props.className, )} style={props.desktopWidth ? { width: props.desktopWidth, maxWidth: props.desktopWidth } : undefined} @@ -205,7 +205,7 @@ function AnnotationPanelBody(props: AnnotationPanelProps) { <>

Comments

@@ -227,7 +227,7 @@ function AnnotationPanelBody(props: AnnotationPanelProps) {
-
+
{FILTERS.map((entry) => { const count = counts[entry.id]; const isActive = filter === entry.id; @@ -255,12 +255,12 @@ function AnnotationPanelBody(props: AnnotationPanelProps) { {props.newCommentDisabled && props.newCommentDisabledReason ? (

{props.newCommentDisabledReason}

) : null} -
+
{filteredThreads.length === 0 ? (

{filter === "open" ? "No open comments yet. Select text to add one." : `No ${filter} comments.`} @@ -302,8 +302,8 @@ function AnnotationPanelBody(props: AnnotationPanelProps) { )}

{props.pendingAnchor ? ( -
-
+
+
{truncate(props.pendingAnchor.selectedText, 160)}