mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
fix: filter [Trip Photos] container from mobile public view (#764)
MobileMapTimeline received the raw entries array, bypassing the synthetic-container filter applied to timelineEntries. On screens below the lg breakpoint (<1024px) the [Trip Photos] sync container leaked back into the combined map+timeline view.
This commit is contained in:
@@ -219,7 +219,7 @@ export default function JourneyPublicPage() {
|
|||||||
{/* Mobile combined map+timeline (public, read-only) */}
|
{/* Mobile combined map+timeline (public, read-only) */}
|
||||||
{isMobile && view === 'timeline' && perms.share_timeline && perms.share_map && (
|
{isMobile && view === 'timeline' && perms.share_timeline && perms.share_map && (
|
||||||
<MobileMapTimeline
|
<MobileMapTimeline
|
||||||
entries={entries}
|
entries={timelineEntries}
|
||||||
mapEntries={mapEntries.map(e => ({ id: String(e.id), lat: e.location_lat!, lng: e.location_lng!, title: e.title, mood: e.mood, entry_date: e.entry_date }))}
|
mapEntries={mapEntries.map(e => ({ id: String(e.id), lat: e.location_lat!, lng: e.location_lng!, title: e.title, mood: e.mood, entry_date: e.entry_date }))}
|
||||||
dark={document.documentElement.classList.contains('dark')}
|
dark={document.documentElement.classList.contains('dark')}
|
||||||
readOnly
|
readOnly
|
||||||
|
|||||||
Reference in New Issue
Block a user