From ea3c8b149eefdf542181ccef8c583d0869303b7b Mon Sep 17 00:00:00 2001 From: SocioWire Date: Sat, 10 Jan 2026 03:39:38 +0000 Subject: [PATCH] Fix gallery remove button and update floating UI styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix removeMediaFromGallery -> removeMediaUrlAtIndex function reference - Update create post floating UI styling 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/components/Map/MapView.jsx | 58 ++++++++++++++++++++++++------ src/styles/map.css | 64 ++++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+), 11 deletions(-) diff --git a/src/components/Map/MapView.jsx b/src/components/Map/MapView.jsx index 0028f62..5d5d418 100644 --- a/src/components/Map/MapView.jsx +++ b/src/components/Map/MapView.jsx @@ -1895,6 +1895,10 @@ export default function MapView({ { const v = e.target.value; if (isLikelyUrl(v)) { @@ -1905,6 +1909,16 @@ export default function MapView({ setDraftTitle(v); setTitleTouched(true); } }} + onPaste={(e) => { + const pasted = e.clipboardData?.getData('text') || ''; + if (pasted && isLikelyUrl(pasted.trim())) { + e.preventDefault(); + const v = pasted.trim(); + setDraftTitle(v); setTitleTouched(false); setDraftUrl(v); + setUrlPreviewError(""); setDraftSource(""); setDraftPublishedAt(""); + handleUrlPreview(v); + } + }} /> {draftUrl && !draftSource && Fetching preview...} {draftSource && {draftSource}} @@ -1945,21 +1959,43 @@ export default function MapView({ {useCustomImage && ( -
- - - {uploadingImage && Uploading...} -
+ <> +
+ + + {uploadingImage && Uploading...} +
+ {galleryItems.length > 0 && ( +
+ {galleryItems.map((url, idx) => ( +
+ {`Upload + +
+ ))} +
+ )} + )} )} + {/* Error display */} + {saveError && ( +
+ + {saveError} +
+ )} + {/* Navigation buttons */}