From ff0251c059e93f05f4f288f9c4d9e8d509d36ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20=C5=BDec?= Date: Tue, 14 Jul 2026 13:18:40 +0200 Subject: [PATCH 1/2] fix(chat): add compact mode to mobile chat headers for non-full-screen embeds --- .../chat/chat-panel-header-mobile.tsx | 20 ++++++++++++++----- .../src/components/chat/chat-panel-header.tsx | 12 +++++++++++ .../src/components/chat/embeddable-chat.tsx | 6 ++++++ 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/openframe-frontend-core/src/components/chat/chat-panel-header-mobile.tsx b/openframe-frontend-core/src/components/chat/chat-panel-header-mobile.tsx index 06a241686..fa4a37d2a 100644 --- a/openframe-frontend-core/src/components/chat/chat-panel-header-mobile.tsx +++ b/openframe-frontend-core/src/components/chat/chat-panel-header-mobile.tsx @@ -26,7 +26,9 @@ export interface ChatPanelHeaderMobileProps extends ChatPanelHeaderProps { * without it the panel cannot be dismissed at all. * * Same prop contract as `ChatPanelHeader`; the orchestrator renders this on - * mobile and the desktop bar on `md+`. + * mobile and the desktop bar on `md+`. Pass `compact` to trade the + * full-screen-drawer spacing above for a tighter, vertically-centered row + * (see `compact`'s doc on `ChatPanelHeaderProps`). */ export function ChatPanelHeaderMobile({ showBack = false, @@ -40,6 +42,7 @@ export function ChatPanelHeaderMobile({ onArchive, onOpenArchive, className, + compact = false, }: ChatPanelHeaderMobileProps) { // The right-hand ⋯ menu carries the view-dependent actions. Close is not // listed (the panel is dismissed elsewhere); the trigger is hidden entirely @@ -55,11 +58,12 @@ export function ChatPanelHeaderMobile({
-
+
{showBack && (