diff --git a/mobile/src/TripList.tsx b/mobile/src/TripList.tsx index 057683c..c0e1167 100644 --- a/mobile/src/TripList.tsx +++ b/mobile/src/TripList.tsx @@ -17,6 +17,19 @@ export function TripList({ trips, now, onOpen, onImport, onDemo, onDelete }: Pro const sorted = sortTrips(trips, now); const next = nextTripId(trips, now); const demo = useMemo(() => demoTrip(), []); + // The demo as a trip tile, on an empty list and at the end of a full one. + const demoTile = ( +
+ +
+ ); return (
@@ -41,16 +54,7 @@ export function TripList({ trips, now, onOpen, onImport, onDemo, onDelete }: Pro

Or look around first

-
- -
+ {demoTile}

How to bring a trip: on your PC choose Export → JSON in a trip, then save the file to OneDrive, Google Drive or Downloads, or email it to yourself. @@ -97,14 +101,21 @@ export function TripList({ trips, now, onOpen, onImport, onDemo, onDelete }: Pro {sorted.length > 0 && ( <> -

- -
+
{demoTile}

Importing a newer export of the same trip replaces it.

)} diff --git a/mobile/src/app.css b/mobile/src/app.css index 5d58c60..679d1b1 100644 --- a/mobile/src/app.css +++ b/mobile/src/app.css @@ -238,6 +238,16 @@ p { background: transparent; text-align: left; } +/* At the end of a list, the slot keeps the trip tiles' width (they have a bin beside them). */ +.next-slot, +.next-slot-row > .trip-deck { + flex: 1; + min-width: 0; + margin-right: 48px; +} +.next-slot-row { + margin-top: 4px; +} .first-plus { flex: none; display: grid; @@ -364,12 +374,6 @@ p { color: var(--muted); } -.actions { - display: grid; - gap: 10px; - margin: 20px 0 12px; -} - /* ---------- Day strip ---------- */ .day-strip {