fix(places): centre the empty states, and give the details column one too

Five states, one shape. EmptyState grows a `fill` option: the stack already
centres what it holds, but with no height of its own there was nothing to centre
inside, so every one of them sat pinned under the header of its column.

Optically centred rather than geometrically. The extra room goes underneath,
which puts the mascot slightly above the middle: in a column you can scroll,
dead centre reads as having fallen to the bottom the moment the list is short.

The details column's own placeholder joins them, with the idle look rather than
the sad one, because nothing being picked yet is a state and not a fault. Its
line is shortened to fit on one: "Pick a result to see more", in all 23
languages.

The corridor panel, the saved-places list and the place details all dropped
`compact`, so the five now read at the same size as the road trip rail.
This commit is contained in:
Maurice
2026-09-08 17:16:48 +02:00
committed by Maurice
parent 4a88dbcbcf
commit 900e4806ad
29 changed files with 79 additions and 37 deletions
@@ -509,7 +509,7 @@ export default function RoadtripCorridorPanel({ corridor, routes, onAddPoi }: Ro
scene={search.loading ? 'search' : 'idle'}
mood={filteredToNothing ? 'confused' : undefined}
size={88}
compact
fill
surface="var(--bg-secondary)"
title={
search.loading
@@ -1044,8 +1044,11 @@ export default function RoadtripSidebar({
// Nothing to total up, so nothing pretends to: no "0 km" standing above "No route yet".
if (routes.days.length === 0) {
// Centred in the rail rather than sitting at its top: the state is about the
// whole column being empty, and a mascot pinned under the header reads as a
// header decoration.
return (
<div className="min-h-0 flex-1 overflow-y-auto">
<div className="flex min-h-0 flex-1 items-center justify-center overflow-y-auto">
{/* The mascot rather than a pin and two lines of instructions. The rail
is empty because the trip has no days with places yet, which is a
state, not a task list: the same look every other empty state in TREK