chore: tune sub activate modal view

This commit is contained in:
3252a8
2026-05-25 13:11:48 +03:00
parent 2a3a3c21ba
commit 17cff74b7c
3 changed files with 47 additions and 21 deletions
+10 -3
View File
@@ -50,9 +50,16 @@
></button>
<section class={cn("dialog-card", className)} in:fly={cardIn} out:fly={cardOut}>
<div class="dialog-head">
<div>
{#if title}<h2>{title}</h2>{/if}
{#if description}<p>{description}</p>{/if}
<div class:dialog-title-with-icon={$$slots.titleIcon} class="dialog-title-block">
{#if $$slots.titleIcon}
<span class="dialog-title-icon" aria-hidden="true">
<slot name="titleIcon" />
</span>
{/if}
<div class="dialog-title-copy">
{#if title}<h2>{title}</h2>{/if}
{#if description}<p>{description}</p>{/if}
</div>
</div>
<Button variant="icon" size="icon" onclick={onclose} aria-label={closeLabel}>
<X size={18} />