feat(terminal): styling improvements and shortcut

This commit is contained in:
2025-10-02 20:26:34 +02:00
parent 7cee2ff94f
commit 489fdafa1c
4 changed files with 108 additions and 11 deletions

View File

@@ -517,11 +517,11 @@ class ClusterMembersComponent extends Component {
});
}
if (terminalBtn) {
if (terminalBtn) {
this.addEventListener(terminalBtn, 'click', async (e) => {
e.stopPropagation();
e.preventDefault();
try {
e.stopPropagation();
e.preventDefault();
try {
if (!window.TerminalPanel) return;
this.ensureTerminalContainer();
const panel = window.TerminalPanel;
@@ -530,11 +530,11 @@ class ClusterMembersComponent extends Component {
if (wasMinimized && panel.restore) {
panel.restore();
}
} catch (err) {
console.error('Failed to open member terminal:', err);
}
});
}
} catch (err) {
console.error('Failed to open member terminal:', err);
}
});
}
});
}, 100);
}