From b15dcd9730359e5413f48d21663efce2cc55a2c6 Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 6 Nov 2026 15:45:54 +0100 Subject: [PATCH] fix(mobile): place details card in the phone form's style The card gets a header with its icon in a round badge, its section labels use the eyebrow of the form's own fields below it, and the description sits on the mobile field surface with a pill button to take its text over. --- .../components/Planner/PlaceDetailsColumn.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/client/src/components/Planner/PlaceDetailsColumn.tsx b/client/src/components/Planner/PlaceDetailsColumn.tsx index 12697d91b..839a44b5d 100644 --- a/client/src/components/Planner/PlaceDetailsColumn.tsx +++ b/client/src/components/Planner/PlaceDetailsColumn.tsx @@ -91,7 +91,8 @@ function SheetHint({ icon, children }: { icon: React.ReactNode; children: React. */ function Overline({ children }: { children: React.ReactNode }): React.ReactElement { return ( -

{children}

+ // The phone form's eyebrow (mobile Eyebrow), so these labels match Name, Notes and the rest below. +

{children}

) } @@ -102,7 +103,7 @@ function Overline({ children }: { children: React.ReactNode }): React.ReactEleme function Block({ label, dialog, children }: { label: React.ReactNode; dialog: boolean; children: React.ReactNode }): React.ReactElement { if (!dialog) { return ( -
+
{label} {children}
@@ -238,9 +239,11 @@ export default function PlaceDetailsColumn({ {dialog ? ( }>{t('places.details.title')} ) : ( -
- - {t('places.details.title')} +
+ + + + {t('places.details.title')}
)} @@ -636,7 +639,7 @@ function DescriptionBlock({ return ( -
+
{aboutBrand && (

@@ -668,7 +671,7 @@ function DescriptionBlock({ onClick={onAdopt} disabled={adoptBlocked} aria-describedby={adoptBlocked ? adoptBlockedId : undefined} - className={dialog ? WHITE_BUTTON : 'w-full inline-flex items-center justify-center gap-1.5 rounded-lg px-3 py-2 text-body font-medium bg-accent-subtle text-accent-on hover:bg-accent hover:text-accent-text disabled:opacity-50 disabled:hover:bg-accent-subtle disabled:hover:text-accent-on transition-colors'} + className={dialog ? WHITE_BUTTON : 'inline-flex h-8 items-center justify-center gap-1.5 rounded-full bg-m-act px-3.5 text-caption font-semibold text-m-actfg transition-transform active:scale-[.97] disabled:opacity-40'} style={dialog ? fs(13, 'body') : undefined} >