Fix line-breaks-in-note bug

This commit is contained in:
Ben Goldsworthy 2022-08-29 21:35:04 +00:00
parent e58b650eb1
commit 7fb2e755b6

View file

@ -64,7 +64,7 @@
marker = L.marker([{{ $checkin->location->latitude }}, {{ $checkin->location->longitude }}]).addTo(map);
popupMarkup = '<h2 class="popup__title">{{ $checkin->title ?? "No Title" }}</h2>';
popupMarkup += '<p class="popup__note">{{ $checkin->note }}</p>';
popupMarkup += `<p class="popup__note">{{ $checkin->note }}</p>`;
popupMarkup += '<img class="popup__image" src="{{ $checkin->image_url }}">';
marker.bindPopup(popupMarkup).openPopup();