Et2Box: Implement elign=center

This commit is contained in:
nathan 2022-11-25 11:18:12 -07:00
parent b129a46e3c
commit 2e61c3a23e

View File

@ -37,6 +37,9 @@ export class Et2Box extends Et2Widget(LitElement) implements et2_IDetachedDOM
:host([align="left"]) > div { :host([align="left"]) > div {
justify-content: flex-start; justify-content: flex-start;
} }
:host([align="center"]) > div {
justify-content: center;
}
/* CSS for child elements */ /* CSS for child elements */
::slotted(*) { ::slotted(*) {
flex: 1 1 auto; flex: 1 1 auto;