From 9a308af6efe5c75c0af348ba9b09df986cf1377b Mon Sep 17 00:00:00 2001 From: Harald Brabenetz Date: Fri, 25 Sep 2026 19:21:17 +0200 Subject: [PATCH] fix(openscd): give editor plugins a bounded remaining viewport height OscdLayout wrapper is now a column flex container with viewport-bounded height so `.plugin.editor` fills the space below app bar and tabs. Fixes #173 --- packages/openscd/src/addons/Layout.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/openscd/src/addons/Layout.ts b/packages/openscd/src/addons/Layout.ts index 6fd6923427..a25fb8d2a0 100644 --- a/packages/openscd/src/addons/Layout.ts +++ b/packages/openscd/src/addons/Layout.ts @@ -666,6 +666,21 @@ export class OscdLayout extends LitElement { static styles = css` + + :host > div { + height: calc(-4px + 100vh); /* 4px is the bottom progressbar from the oscd-waiter wrapper */ + display: flex; + flex-direction: column; + min-height: 0; + } + + .plugin.editor { + min-height: 0; + flex: 1; + height: 100%; + overflow: auto; + } + mwc-drawer { position: absolute; top: 0;