From 16ad61ce155509f1e9f62b059fb9de8c3a6bc642 Mon Sep 17 00:00:00 2001 From: Matt Ciaccio Date: Fri, 1 May 2026 16:09:32 +0200 Subject: [PATCH] fix(mobile): hide duplicate detail-header title on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mobile topbar already shows the entity name pushed via useMobileChrome, so the gradient detail-header strip was rendering it a second time. Hides the inline h1 below sm: while keeping the source / email / phone meta and action buttons visible — the strip's practical content (actions + meta) stays where users need it, and the title responsibility moves cleanly to the topbar. Affects: clients, yachts, companies, berths detail headers. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/berths/berth-detail-header.tsx | 4 +++- src/components/clients/client-detail-header.tsx | 4 +++- src/components/companies/company-detail-header.tsx | 4 +++- src/components/yachts/yacht-detail-header.tsx | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/berths/berth-detail-header.tsx b/src/components/berths/berth-detail-header.tsx index 5df6750..9558c84 100644 --- a/src/components/berths/berth-detail-header.tsx +++ b/src/components/berths/berth-detail-header.tsx @@ -170,7 +170,9 @@ export function BerthDetailHeader({ berth }: BerthDetailHeaderProps) {
-

Berth {berth.mooringNumber}

+

+ Berth {berth.mooringNumber} +

diff --git a/src/components/clients/client-detail-header.tsx b/src/components/clients/client-detail-header.tsx index 57f8e0b..becfbc4 100644 --- a/src/components/clients/client-detail-header.tsx +++ b/src/components/clients/client-detail-header.tsx @@ -74,7 +74,9 @@ export function ClientDetailHeader({ client }: ClientDetailHeaderProps) {
-

{client.fullName}

+

+ {client.fullName} +

{isArchived && ( Archived diff --git a/src/components/companies/company-detail-header.tsx b/src/components/companies/company-detail-header.tsx index 71d5e2b..b7f0f9f 100644 --- a/src/components/companies/company-detail-header.tsx +++ b/src/components/companies/company-detail-header.tsx @@ -80,7 +80,9 @@ export function CompanyDetailHeader({ company }: CompanyDetailHeaderProps) {
-

{company.name}

+

+ {company.name} +

diff --git a/src/components/yachts/yacht-detail-header.tsx b/src/components/yachts/yacht-detail-header.tsx index 3663417..2a60245 100644 --- a/src/components/yachts/yacht-detail-header.tsx +++ b/src/components/yachts/yacht-detail-header.tsx @@ -145,7 +145,9 @@ export function YachtDetailHeader({ yacht }: YachtDetailHeaderProps) {
-

{yacht.name}

+

+ {yacht.name} +