From 411be4473339496106164e8a9fa2a40d19c923d2 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 24 Jul 2026 14:05:13 +0200 Subject: [PATCH] refactor(web): use shared glass surfaces Co-authored-by: codex --- apps/web/src/components/ChatView.tsx | 4 +- apps/web/src/components/chat/ChatComposer.tsx | 6 +- .../components/chat/ThreadDetailsPanel.tsx | 2 +- .../src/components/chat/glassPopupStyles.ts | 6 -- .../chat/threadDetailsPanelStyles.ts | 6 +- apps/web/src/index.css | 62 +++---------------- 6 files changed, 19 insertions(+), 67 deletions(-) delete mode 100644 apps/web/src/components/chat/glassPopupStyles.ts diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 015871cdfb..af30fc31d7 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -6377,7 +6377,9 @@ function ChatViewContent(props: ChatViewProps) { -
+ {!isDraftHeroState ? ( +
+ ) : null}
{activeThreadRef && activePreviewMiniPlayer ? ( diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 3d74ee1ebc..8c2e3e1e03 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2701,9 +2701,9 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) ref={composerSurfaceRef} data-chat-composer-mobile-collapsed={isComposerCollapsedMobile ? "true" : "false"} className={cn( - "floating-glass-surface rounded-[20px] border transition-colors duration-200 has-focus-visible:border-ring/45", - isDragOverComposer ? "border-primary/70 bg-accent/45" : "border-border", - environmentUnavailable ? "opacity-75" : null, + "rounded-[20px] transition-[background-color] duration-200", + isDragOverComposer ? "bg-accent/45 ring-1 ring-primary/70" : null, + environmentUnavailable || projectSelectionRequired ? "opacity-75" : null, composerProviderState.composerSurfaceClassName, )} onFocusCapture={(event) => { diff --git a/apps/web/src/components/chat/ThreadDetailsPanel.tsx b/apps/web/src/components/chat/ThreadDetailsPanel.tsx index 151aa427f5..f28e1202f0 100644 --- a/apps/web/src/components/chat/ThreadDetailsPanel.tsx +++ b/apps/web/src/components/chat/ThreadDetailsPanel.tsx @@ -103,7 +103,7 @@ export function ThreadDetailsPanel(props: ThreadDetailsPanelProps) { const card = (