+
{view === 'timeline' && perms.share_timeline && renderTimeline()}
{view === 'gallery' && perms.share_gallery && renderGallery()}
+ {/* Every day and its entries one click away, as in the journal itself (#2998). */}
+ {view === 'timeline' && perms.share_timeline && sortedDates.length > 1 && (
+
+
+ ({
+ date,
+ color: DAY_COLORS[i % DAY_COLORS.length],
+ entries: (groupedEntries.get(date) ?? []).map(e => ({ id: e.id, title: e.title || e.location_name || t('journey.detail.newEntry') })),
+ }))}
+ />
+
+
+ )}
{/* Right: sticky map — matches auth page aside proportions */}
diff --git a/client/src/pages/journeyPublic/useJourneyPublic.ts b/client/src/pages/journeyPublic/useJourneyPublic.ts
index 24241a0d9..8bcfc799f 100644
--- a/client/src/pages/journeyPublic/useJourneyPublic.ts
+++ b/client/src/pages/journeyPublic/useJourneyPublic.ts
@@ -32,6 +32,8 @@ export function useJourneyPublic() {
const [showLangPicker, setShowLangPicker] = useState(false)
const locale = useSettingsStore(s => s.settings.language) || 'en'
const mapRef = useRef
(null)
+ // The desktop feed, for the day picker to scroll (#2998).
+ const feedRef = useRef(null)
const [activeEntryId, setActiveEntryId] = useState(null)
const [viewingEntry, setViewingEntry] = useState(null)
@@ -170,7 +172,7 @@ export function useJourneyPublic() {
return {
token, data, loading, error, isMobile, locale,
view, setView, lightbox, setLightbox, showLangPicker, setShowLangPicker,
- mapRef, activeEntryId, setActiveEntryId, viewingEntry, setViewingEntry, handleMarkerClick,
+ mapRef, feedRef, activeEntryId, setActiveEntryId, viewingEntry, setViewingEntry, handleMarkerClick,
perms, journey, stats,
timelineEntries, groupedEntries, sortedDates, displayDates, sidebarMapItems, allPhotos, stopNumberById, mapPhotos,
mapLayers, entryTitleOf,