- Place details header now keeps the same top gap as the standard 56px
drawer header, so the place name is not crammed against the drag handle.
- Read the sheet inset untracked in the map's pin/center helpers so
updateSelectedPin no longer re-runs on every drag frame. This stops the
selected marker from jittering while a drawer is dragged.
- Re-center the selected place in the resized visible area when a drawer
settles at a new detent, and pan it clear of the sheet on a same-size
settle (restores the auto-pan that untracking removed).
- Commit the sheet's hidden position with the transform transition
disabled so the entrance animates from fully hidden and slides up,
instead of shrinking down from the top.
- Add acceptance tests for the header gap, the per-frame pin recompute,
and the settle recenter/pan behaviour.
The tallest detent now fills the viewport down from the top of the search
field, so a fully expanded sheet covers the search field and avatar while
leaving that little strip visible above.
- DETENT_FRACTIONS.expanded is now the whole sheet; the sheet height is the
viewport minus a top gap (replacing the 0.92 fraction cap).
- The modifier measures that gap from the search field, relative to the sheet's
container (the viewport top is not the app's top), falling back to 8px.
- Update the sheet-detents unit test and read the real --sheet-height in the
stacked-sheets acceptance test.
Drawer headers: a shared DrawerHeader component renders the desktop nav-bar
layout (back + centered title + close) and a mobile variant (left title, no
back button, a single X that dismisses the top sheet — back when there is a
parent, otherwise close). Place details uses the place name as its title with
a compact, borderless header, and on mobile moves the photos below the place
type. The X and back buttons now have aria-labels.
Sheet scrolling: the content only scrolls while the sheet is at its largest
detent; below that, dragging anywhere on the sheet (including list rows and
links, not just the header) resizes it. At the largest detent, pulling down on
the content while it is scrolled to the top shrinks the sheet (overscroll to
shrink).
Place details opens at the medium detent again. The mobile photo carousel no
longer bleeds to the sheet edges, gets a wider gap and the same corner radius
as the action buttons.
Give each bottom sheet its own default height and remember the size the
user drags it to, per sheet, so one sheet's height no longer leaks into the
next.
- App menu now opens at the medium detent instead of near-full-screen.
- Place details opens at the short (collapsed) detent; the results and list
sheets stay at medium.
- Detent memory is keyed by route (map-ui.sheetDetents) instead of one
shared slot, and the `detent` arg is authoritative on mount.
- Background (parent) sheets are pinned to the minimum reachable detent on
mount and on viewport changes, so they can never peek above the top sheet
no matter how short it is. They still never write the detent memory.
Derive the sheet stack from the URL instead of mutating it: the route
template keeps rendering the top sheet, and application.gjs renders the
service-driven parent (search results, lists index, app menu) behind it on
mobile, inert, so closing the top sheet reveals the parent at its
remembered size.
- bottom-sheet modifier: `background` arg — background instances settle
immediately, inject no handle, take no gestures, never own the inset slot,
and never write the remembered detent (restore-only).
- z-index: demote background sheets below the top sheet, including the app
menu whose desktop z-index was inverted.
- outside tap on mobile pops to the parent without hideSidebar(), keeping
the session and detent alive; desktop keeps today's close-all.
- tracked matchMedia-backed viewport service for the mobile breakpoint.
- lists index extracted into a component so it can render top or background.
- scope .sidebar-content lookups and test selectors to .sheet-top.
Known v1 limitation: popping hard-cuts to the parent route (no exit
animation). The full derived stack with independent detents for 3-level
chains is deferred.
Mobile sheets (search results, place details, lists, menu, contributions,
activity, new place) become draggable bottom sheets with three detents
(collapsed / medium / expanded), fling-snapping, and swipe-down-to-dismiss.
The sheet is transform-based and content never reflows while dragging.
The map, crosshair, and pin-centering react to the live covered height through
mapUi.sheetInsetPx, replacing the old hardcoded "bottom 50%" assumptions.
Also fixes a backtracking crash that made the drawer disappear when opening a
place from search results: the modifier no longer writes tracked service state
during render. Writes are coalesced into an animation-frame flush and gated by
an ownership token, so a stale sheet can't corrupt the inset.
The full-text search field now detects anything the /e/ handler can open
(raw 64-hex ids, note1/nevent1/naddr1 codes, nostr: URIs, kind:pubkey:d
coordinates and permalinks) and opens it instead of running a Photon or
bookmark search.
As-you-type, a pasted reference resolves through the event store while the
field shows a spinner and the popover offers a single row labelled by kind
("Place photo" / "Place review", or a generic "Nostr event"). A reference
that cannot be found shows the usual not-found toast, and an unlinked event
is flagged as such. Submitting a reference, and direct /search?q=<ref>
links, route straight to the /e/ handler.
* Transition to OSM route or index instead of staying on ghost route/ID
(closes sidebar if it was a custom place)
* Ensure save button and lists are in the correct state