feat(terminal): styling improvements and shortcut
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user