Api: Stop images inside boxes from stretching

This commit is contained in:
nathan 2021-12-09 09:26:58 -07:00
parent d42f20cf38
commit 4fe9f6c614

View File

@ -34,6 +34,10 @@ export class Et2Box extends Et2Widget(LitElement) implements et2_IDetachedDOM
margin: 0px 2px;
flex: 1 0 auto;
}
::slotted(img) {
/* Stop images from growing. In general we want them to stay */
flex-grow: 0;
}
::slotted([align="left"]) {
margin-right: auto;
order: -1;