From 1227f1aff9c484eb1713df64317db70c25657700 Mon Sep 17 00:00:00 2001 From: Jacob Lamont Date: Thu, 5 Dec 2024 20:53:30 -0500 Subject: [PATCH] [Dialog]: scroll entire dialog instead of just .body --- src/components/dialog/dialog.svelte | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/dialog/dialog.svelte b/src/components/dialog/dialog.svelte index 840fabefd..c4a7d3658 100644 --- a/src/components/dialog/dialog.svelte +++ b/src/components/dialog/dialog.svelte @@ -154,7 +154,7 @@ } .leo-dialog.hasHeader { - grid-template-rows: auto 1fr; + grid-template-rows: auto auto; } /** Since Svelte 4 doesn't support conditional slots in the consumer, @@ -163,12 +163,12 @@ * case the selector with :host. */ :host .leo-dialog.hasActions, .leo-dialog.hasActions:has([slot='actions']:not(:empty)) { - grid-template-rows: 1fr auto; + grid-template-rows: auto auto; } :host .leo-dialog.hasHeader.hasActions, .leo-dialog.hasHeader.hasActions:has(.actions [slot='actions']:not(:empty)) { - grid-template-rows: auto 1fr auto; + grid-template-rows: auto auto auto; } .leo-dialog:not(.modal) { @@ -209,7 +209,6 @@ } .leo-dialog .body { - overflow-y: auto; background: var(--background); color: var(--leo-color-text-secondary); font: var(--leo-font-default-regular);