From 6de15a92a4c57fc17bdf1e70e85b5f35a4b3befd Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 6 Nov 2026 15:47:03 +0100 Subject: [PATCH] feat(mobile): fold the place details card away in the add place form Its header is a button with a chevron; folded, the card shrinks to that header with an eased height and the form's own fields move up. --- .../components/Planner/PlaceDetailsColumn.tsx | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/client/src/components/Planner/PlaceDetailsColumn.tsx b/client/src/components/Planner/PlaceDetailsColumn.tsx index 839a44b5d..520504377 100644 --- a/client/src/components/Planner/PlaceDetailsColumn.tsx +++ b/client/src/components/Planner/PlaceDetailsColumn.tsx @@ -136,6 +136,9 @@ export default function PlaceDetailsColumn({ const adoptBlockedId = useId() const [data, setData] = useState(null) const [state, setState] = useState('idle') + // The phone sheet folds the card away to give the form's own fields the room. + const [open, setOpen] = useState(true) + const bodyId = useId() const abortRef = useRef(null) const selectionKey = selection ? cacheKeyFor(selection, language) : null @@ -239,15 +242,32 @@ export default function PlaceDetailsColumn({ {dialog ? ( }>{t('places.details.title')} ) : ( -
+
+ {t('places.details.title')} + + )} -
+ {/* Folding on the phone: the grid row eases between its height and none. */} +
+
+
{/* The place's picture first: its own ones are there whatever the sources answer. */} )}
+
+
) }