From 58a193aa8715adc31470b6b3bc96e27bbedb0641 Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Mon, 24 Aug 2026 01:49:10 +0300 Subject: [PATCH] feat(ui): glass surfaces for selection menus and comment popovers The chat selection menu (desktop pill and mobile sheet), the chat comment input, the file-preview Comment pill, the shared inline comment editor, and the composer's context chip preview popover now use the same translucent blurred glass surface as the btw panel, keeping their borders and soft shadow. --- .../chat/composer/ui/ComposerContextChips.tsx | 2 +- .../components/chat/message/TextSelectionMenu.tsx | 12 ++++++------ .../components/comments/FilePreviewCommentMenu.tsx | 4 ++-- .../src/components/comments/InlineCommentInput.tsx | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/ui/src/components/chat/composer/ui/ComposerContextChips.tsx b/packages/ui/src/components/chat/composer/ui/ComposerContextChips.tsx index 832dc623..f39bb5fd 100644 --- a/packages/ui/src/components/chat/composer/ui/ComposerContextChips.tsx +++ b/packages/ui/src/components/chat/composer/ui/ComposerContextChips.tsx @@ -323,7 +323,7 @@ export function ComposerContextChips({ draftTarget, colors }: ComposerContextChi
{openGroup ? (
diff --git a/packages/ui/src/components/chat/message/TextSelectionMenu.tsx b/packages/ui/src/components/chat/message/TextSelectionMenu.tsx index d52f8d26..723aa186 100644 --- a/packages/ui/src/components/chat/message/TextSelectionMenu.tsx +++ b/packages/ui/src/components/chat/message/TextSelectionMenu.tsx @@ -540,8 +540,8 @@ export const TextSelectionMenu: React.FC = ({ containerR const commentInput = (
= ({ containerR ref={menuRef} className={cn( 'fixed left-3 right-3 bottom-0 z-50 mx-auto max-w-[420px]', - 'rounded-2xl border border-[var(--interactive-border)]', - 'bg-[var(--surface-elevated)] p-2 shadow-[0_4px_16px_-4px_rgb(0_0_0_/_0.12)]', + 'oc-glass-popover rounded-2xl border border-[var(--interactive-border)]', + 'p-2 shadow-[0_4px_16px_-4px_rgb(0_0_0_/_0.12)]', 'safe-area-bottom', 'transition-[opacity,transform] duration-200 ease-out will-change-[opacity,transform]', isOpening ? 'opacity-0 translate-y-[4px]' : 'opacity-100 translate-y-0' @@ -722,8 +722,8 @@ export const TextSelectionMenu: React.FC = ({ containerR
diff --git a/packages/ui/src/components/comments/InlineCommentInput.tsx b/packages/ui/src/components/comments/InlineCommentInput.tsx index bcdf248c..8af08eaf 100644 --- a/packages/ui/src/components/comments/InlineCommentInput.tsx +++ b/packages/ui/src/components/comments/InlineCommentInput.tsx @@ -149,7 +149,7 @@ export function InlineCommentInput({ onPointerDown={(e) => e.stopPropagation()} onTouchStart={(e) => e.stopPropagation()} > -
+
{(fileLabel || displayRange) ? (
{fileLabel ? {fileLabel} : null}