Fix some dialog's buttons are not getting fit into the dialog initiated size

This commit is contained in:
hadi 2023-03-29 17:21:41 +02:00
parent f01f84885d
commit 09560a325a

View File

@ -200,7 +200,8 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
css` css`
:host { :host {
--header-spacing: var(--sl-spacing-medium); --header-spacing: var(--sl-spacing-medium);
--body-spacing: var(--sl-spacing-medium) --body-spacing: var(--sl-spacing-medium);
--width: auto;
} }
.dialog__panel { .dialog__panel {
border: 1px solid silver; border: 1px solid silver;
@ -238,7 +239,6 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
pointer-events: none; pointer-events: none;
background: transparent; background: transparent;
} }
:host(:not([isModal])) .dialog__panel { :host(:not([isModal])) .dialog__panel {
pointer-events: auto; pointer-events: auto;
} }