feat: improve terminal and monitoring styling

This commit is contained in:
2025-10-14 10:00:55 +02:00
parent fcff402c75
commit 55bc38577c
3 changed files with 198 additions and 8 deletions

View File

@@ -130,10 +130,17 @@ class DrawerComponent {
// Open drawer
this.detailsDrawer.classList.add('open');
// Inform terminal container that the drawer is open for alignment
if (this.terminalPanelContainer) {
this.terminalPanelContainer.classList.add('drawer-open');
}
}
closeDrawer() {
if (this.detailsDrawer) this.detailsDrawer.classList.remove('open');
if (this.terminalPanelContainer) {
this.terminalPanelContainer.classList.remove('drawer-open');
}
// Call close callback if provided
if (this.onCloseCallback) {

View File

@@ -354,10 +354,11 @@ class MonitoringViewComponent extends Component {
return this.renderNodeCard(nodeData);
}).join('');
const nodeCount = nodeResources.size;
container.innerHTML = `
<div class="nodes-monitoring-content">
<h3>🖥️ Node Resource Details</h3>
<div class="nodes-grid">
<div class="nodes-grid" data-item-count="${nodeCount}">
${nodesHtml}
</div>
</div>