From 701ccd2213d9f49b15084d4968ede4edfb769f32 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 5f709326f4..1460674c6b 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -6106,7 +6106,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 35c304beff..afd28d95bb 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2700,9 +2700,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 = (