Etemplate: Set a gap instead of using margin

This commit is contained in:
nathan 2021-12-14 08:55:34 -07:00
parent 7212b5dd51
commit a7a84df7e5

View File

@ -28,10 +28,10 @@ export class Et2Box extends Et2Widget(LitElement) implements et2_IDetachedDOM
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
gap: 5px;
}
/* CSS for child elements */
::slotted(*) {
margin: 0px 2px;
flex: 1 0 auto;
}
::slotted(img) {
@ -126,7 +126,7 @@ export class Et2VBox extends Et2Box
css`
:host > div {
flex-direction: column;
}`
}`
];
}
}