mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 07:40:59 +00:00
b41f6e3542
The public journey page on a phone shows the map with a card carousel, which always opened on the first entry. The owner's "newest first" choice for the link was ignored there, so readers following a running trip had to swipe through every day to reach the latest one (discussion #2851). The rule for where a journey opens moves out of the journal hook into journeyOpenAtEntryId, which the public page now uses as well: a newest-first link opens on the latest day, otherwise a running journey opens on today as the journal already does. The carousel also settles on the card at the end it is scrolled to. The last card can never reach the centre, so opening on the latest day used to activate the day before it, in the journal as well.