From e69c1bd8aa6c4302c3e571edfc2bc0b201e710c5 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 2 Jan 2026 22:35:33 +0800 Subject: [PATCH] fix(ui): align FullScreenPanel header with App.tsx layout - Use same DRAG_BAR_HEIGHT (28px) and HEADER_HEIGHT (64px) as App.tsx - Remove border-b divider line from header - Add rounded-lg class to back button for consistency --- src/components/common/FullScreenPanel.tsx | 25 ++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/src/components/common/FullScreenPanel.tsx b/src/components/common/FullScreenPanel.tsx index c5f79b879..a0a757361 100644 --- a/src/components/common/FullScreenPanel.tsx +++ b/src/components/common/FullScreenPanel.tsx @@ -12,6 +12,9 @@ interface FullScreenPanelProps { footer?: React.ReactNode; } +const DRAG_BAR_HEIGHT = 28; // px - match App.tsx +const HEADER_HEIGHT = 64; // px - match App.tsx + /** * Reusable full-screen panel component * Handles portal rendering, header with back button, and footer @@ -44,18 +47,30 @@ export const FullScreenPanel: React.FC = ({ className="fixed inset-0 z-[60] flex flex-col" style={{ backgroundColor: "hsl(var(--background))" }} > - {/* Header */} + {/* Drag region - match App.tsx */}
+ + {/* Header - match App.tsx */} +
-
-
+