fix: location NaN guard, PiP drag unmount cleanup, README v4.12.1

This commit is contained in:
root
2026-05-15 15:56:43 -04:00
parent 5418b9e188
commit ab9b02a243
3 changed files with 11 additions and 4 deletions
@@ -393,6 +393,7 @@ export function MLocation({ content }: MLocationProps) {
const lat = parseFloat(location.latitude);
const lon = parseFloat(location.longitude);
if (!isFinite(lat) || !isFinite(lon)) return <BrokenContent />;
const mapSrc = `https://www.openstreetmap.org/export/embed.html?bbox=${lon - 0.007},${lat - 0.004},${lon + 0.007},${lat + 0.004}&layer=mapnik&marker=${lat},${lon}`;
return (