From ee784b149ec4d4de9a3646d40dc9d417010eee25 Mon Sep 17 00:00:00 2001 From: MK Fain Date: Wed, 3 Dec 2025 22:16:49 -0600 Subject: [PATCH] hide Chat header in GlobalChatPane when mobile toggle is present The header is redundant in mobile view since context is clear from the toggle button --- src/components/GlobalChatPane.tsx | 45 +++++++++++++++++-------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/src/components/GlobalChatPane.tsx b/src/components/GlobalChatPane.tsx index f0ead919..c06828c9 100644 --- a/src/components/GlobalChatPane.tsx +++ b/src/components/GlobalChatPane.tsx @@ -210,29 +210,34 @@ export function GlobalChatPane({ embedded = false, mobileChatMode, onMobileChatM // Embedded mode: Render inline without fixed positioning if (embedded) { + // Hide header when there's a mode toggle (mobile view with switching) + const showHeader = !mobileChatMode; + return (
- {/* Header */} -
-

{t('globalChat')}

-
- {messages.length > 0 && ( - - - - - {t('clearChat')} - - )} + {/* Header - hidden when mobile toggle is present */} + {showHeader && ( +
+

{t('globalChat')}

+
+ {messages.length > 0 && ( + + + + + {t('clearChat')} + + )} +
-
+ )} {/* Messages */}