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

@@ -16,7 +16,7 @@
{#if show} {#if show}
<div class="visible fixed inset-0 h-screen w-screen z-20 pointer-events-auto flex flex-col justify-end items-center"> <div class="visible fixed inset-0 h-screen w-screen z-20 pointer-events-auto flex flex-col justify-end items-center">
<button type="button" class="bg-base-100/50 w-full grow z-20" <button type="button" class="bg-base-100/50 absolute inset-0 h-full w-full"
transition:fade={{duration:200}} transition:fade={{duration:200}}
onclick={closeOverlay} onclick={closeOverlay}
aria-label="Close Overlay" aria-label="Close Overlay"

View File

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