BSlideOverlay fix layout not filling in widescreen and Map fix only in production

This commit is contained in:
2025-03-28 16:17:30 +01:00
parent fb01fe583e
commit ca2bd2f50a
2 changed files with 7 additions and 5 deletions

View File

@@ -7,10 +7,12 @@
import { onMount, type Snippet } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
// Fix bundling bug for leaflet default marker icon on production
L.Icon.Default.prototype.options.iconUrl = lmiUrl;
L.Icon.Default.prototype.options.iconRetinaUrl = lmi2Url;
L.Icon.Default.prototype.options.shadowUrl = lmsUrl;
if (import.meta.env.MODE === 'production') {
// Fix bundling bug for leaflet default marker icon on production
L.Icon.Default.prototype.options.iconUrl = lmiUrl;
L.Icon.Default.prototype.options.iconRetinaUrl = lmi2Url;
L.Icon.Default.prototype.options.shadowUrl = lmsUrl;
}
type Props = {
x: number,