From a9a1d782c3101c10bad42f441e2077d1d55dcb99 Mon Sep 17 00:00:00 2001 From: Sociowire Dev Date: Tue, 13 Jan 2026 05:34:24 +0000 Subject: [PATCH] fix: camera pins - small red dot, hide if no thumbnail - Replace LIVE badge with small pulsing red dot (6px) - Hide camera marker entirely if no thumbnail available - Cleaner, less intrusive design Co-Authored-By: Claude Opus 4.5 --- src/components/Map/markerManager.js | 44 +++++++++-------------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/src/components/Map/markerManager.js b/src/components/Map/markerManager.js index 926b6f2..0052552 100644 --- a/src/components/Map/markerManager.js +++ b/src/components/Map/markerManager.js @@ -2466,11 +2466,12 @@ export function createSimpleMarkerForPost(post, mapRef, markersRef, expandedElRe // Weather city name for label const weatherCity = isWeather ? (activePost?.city || (activePost?.title || '').split(':')[0].replace(/^[^\w\s]+/, '').trim()) : ''; - // Camera thumbnail URL + // Camera thumbnail URL - only show camera marker if thumbnail available const cameraThumbnail = isCamera ? (activePost?.thumbnail_url || activePost?.image_small || '') : ''; + const showCameraMarker = isCamera && cameraThumbnail; // Marqueur pin avec image en haut et pointe en bas - root.innerHTML = isCamera ? ` + root.innerHTML = showCameraMarker ? `
- ${cameraThumbnail ? ` - -
- -
- ` : ` -
- -
- `} +
- - LIVE -
+ top: 3px; + right: 3px; + width: 6px; + height: 6px; + border-radius: 50%; + background: #ef4444; + box-shadow: 0 0 4px rgba(239, 68, 68, 0.8); + animation: pulse 1.5s infinite; + ">
- ` : ` + ` : isCamera ? `` : `