@r2digisolutions/components 0.25.18 → 0.25.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -357,13 +357,21 @@
|
|
|
357
357
|
return `transform: translate3d(${tx}px, ${ty}px, 0) scale(${scale}); opacity: ${fade}`;
|
|
358
358
|
});
|
|
359
359
|
const transitioning = $derived(!dragging);
|
|
360
|
+
|
|
361
|
+
/** Promotes the node to the top layer; removing it from the DOM leaves the layer automatically. */
|
|
362
|
+
function topLayer(node: HTMLElement) {
|
|
363
|
+
node.showPopover?.();
|
|
364
|
+
}
|
|
360
365
|
</script>
|
|
361
366
|
|
|
362
367
|
{#if open && current}
|
|
368
|
+
<!-- popover=manual → browser top layer: fixed page chrome (bottom navs, headers) can't cover it -->
|
|
363
369
|
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
364
370
|
<div
|
|
371
|
+
popover="manual"
|
|
372
|
+
use:topLayer
|
|
365
373
|
class={[
|
|
366
|
-
'fixed inset-0 z-50 flex flex-col',
|
|
374
|
+
'fixed inset-0 z-50 m-0 flex h-dvh max-h-none w-screen max-w-none flex-col overflow-visible border-0 p-0',
|
|
367
375
|
blurBackdrop && 'backdrop-blur-xl',
|
|
368
376
|
className
|
|
369
377
|
]}
|