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