BSlideOverlay fix layout not filling in widescreen and Map fix only in production
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
|
if (import.meta.env.MODE === 'production') {
|
||||||
// Fix bundling bug for leaflet default marker icon on production
|
// Fix bundling bug for leaflet default marker icon on production
|
||||||
L.Icon.Default.prototype.options.iconUrl = lmiUrl;
|
L.Icon.Default.prototype.options.iconUrl = lmiUrl;
|
||||||
L.Icon.Default.prototype.options.iconRetinaUrl = lmi2Url;
|
L.Icon.Default.prototype.options.iconRetinaUrl = lmi2Url;
|
||||||
L.Icon.Default.prototype.options.shadowUrl = lmsUrl;
|
L.Icon.Default.prototype.options.shadowUrl = lmsUrl;
|
||||||
|
}
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
x: number,
|
x: number,
|
||||||
|
|||||||
Reference in New Issue
Block a user