From f7817d154631d39336b5c35ff10000ba3660d057 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 | 2 +- apps/web/src/components/chat/ChatComposer.tsx | 4 +- .../components/chat/ThreadDetailsPanel.tsx | 2 +- .../src/components/chat/glassPopupStyles.ts | 6 --- .../chat/threadDetailsPanelStyles.ts | 6 +-- apps/web/src/index.css | 47 ++----------------- 6 files changed, 9 insertions(+), 58 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 70f4739ba2..65e788d263 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -6022,7 +6022,7 @@ function ChatViewContent(props: ChatViewProps) { {!isDraftHeroState ? ( -
+
) : null}
diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 37f024d19e..d335aa68c9 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2267,8 +2267,8 @@ 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-[background-color] duration-200 has-focus-visible:border-ring/45", - isDragOverComposer ? "border-primary/70 bg-accent/45" : "border-border", + "rounded-[20px] transition-[background-color] duration-200", + isDragOverComposer ? "bg-accent/45 ring-1 ring-primary/70" : null, environmentUnavailable || projectSelectionRequired ? "opacity-75" : null, composerProviderState.composerSurfaceClassName, )} 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 = (