From 4311eebdc959ff6db7d55d13f2b91fb7bf5b9e98 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 22 Feb 2023 14:51:21 -0700 Subject: [PATCH] Et2Dialog: Fix missing button alignment --- api/js/etemplate/Et2Dialog/Et2Dialog.ts | 30 +++++++++++++++++-------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/api/js/etemplate/Et2Dialog/Et2Dialog.ts b/api/js/etemplate/Et2Dialog/Et2Dialog.ts index d12c763e3b..edad6f7a60 100644 --- a/api/js/etemplate/Et2Dialog/Et2Dialog.ts +++ b/api/js/etemplate/Et2Dialog/Et2Dialog.ts @@ -231,15 +231,27 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog)) border-top: 1px solid silver; margin-top: 0.5em; } - - /* Non-modal dialogs don't have an overlay */ - :host(:not([isModal])) .dialog, :host(:not([isModal])) .dialog__overlay { - pointer-events: none; - background: transparent; - } - :host(:not([isModal])) .dialog__panel { - pointer-events: auto; - } + + /* Non-modal dialogs don't have an overlay */ + + :host(:not([isModal])) .dialog, :host(:not([isModal])) .dialog__overlay { + pointer-events: none; + background: transparent; + } + + :host(:not([isModal])) .dialog__panel { + pointer-events: auto; + } + + ::slotted([align="left"]) { + margin-right: auto; + order: -1; + } + + ::slotted([align="right"]) { + margin-left: auto; + order: 1; + } ` ]; }