From b98036c67f6780080990cef46eb809543b77e918 Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Fri, 6 Mar 2026 11:50:03 +0000 Subject: [PATCH] templates/index.html aktualisiert --- templates/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/index.html b/templates/index.html index b77c722..7ecb300 100644 --- a/templates/index.html +++ b/templates/index.html @@ -231,6 +231,11 @@ grid.on('resizestop dragstop', () => { localStorage.setItem('pi-orch-layout-v2', JSON.stringify(grid.save(false))); if (window.term) fitAddon.fit(); + grid.on('resizestop', (event, el) => { + // Wenn das Terminal-Widget vergrößert wurde, pass das Terminal-Layout an + if (el.getAttribute('gs-id') === 'term-widget') { + setTimeout(() => fitAddon.fit(), 100); + } }); // 2. Terminal