From 4fe9f6c614a72a2a2167ca55675efb8b32f0acc5 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 9 Dec 2021 09:26:58 -0700 Subject: [PATCH] Api: Stop images inside boxes from stretching --- api/js/etemplate/Et2Box/Et2Box.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/etemplate/Et2Box/Et2Box.ts b/api/js/etemplate/Et2Box/Et2Box.ts index 563cdfc430..3a0f5689df 100644 --- a/api/js/etemplate/Et2Box/Et2Box.ts +++ b/api/js/etemplate/Et2Box/Et2Box.ts @@ -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;