@r2digisolutions/components 0.25.17 → 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
|
]}
|
|
@@ -287,15 +287,15 @@
|
|
|
287
287
|
{#if header}
|
|
288
288
|
{@render header()}
|
|
289
289
|
{:else}
|
|
290
|
-
<div class="border-border bg-surface-overlay/50 px-3.5 py-
|
|
291
|
-
<div class="gap-
|
|
292
|
-
<Avatar {src} {name} size="
|
|
293
|
-
<div class="min-w-0 pt-0
|
|
294
|
-
<p class="text-sm font-semibold text-primary truncate">{name}</p>
|
|
290
|
+
<div class="border-border bg-surface-overlay/50 px-3.5 py-1.5 border-b">
|
|
291
|
+
<div class="gap-2 flex items-start">
|
|
292
|
+
<Avatar {src} {name} size="md" {status} />
|
|
293
|
+
<div class="min-w-0 pt-0 flex-1">
|
|
294
|
+
<p class="text-sm font-semibold text-primary truncate leading-tight">{name}</p>
|
|
295
295
|
{#if email}
|
|
296
|
-
<p class="text-xs text-muted truncate">{email}</p>
|
|
296
|
+
<p class="text-xs text-muted truncate leading-tight">{email}</p>
|
|
297
297
|
{/if}
|
|
298
|
-
<div class="mt-
|
|
298
|
+
<div class="mt-1 gap-2 flex flex-wrap items-center">
|
|
299
299
|
{#if status && statusLabel}
|
|
300
300
|
<StatusDot {status} size="sm" showLabel label={statusLabel} />
|
|
301
301
|
{/if}
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
]}
|
|
336
336
|
>
|
|
337
337
|
{#if item.icon}
|
|
338
|
-
<svelte:component this={item.icon} size={
|
|
338
|
+
<svelte:component this={item.icon} size={22} class="shrink-0 text-muted" aria-hidden="true" />
|
|
339
339
|
{/if}
|
|
340
340
|
<span class="min-w-0 flex-1">
|
|
341
341
|
<span class="text-sm font-medium block">{item.label}</span>
|