diff --git a/app.js b/app.js index 05d6224..917ba6c 100644 --- a/app.js +++ b/app.js @@ -349,8 +349,8 @@ function handlePeerData(data, topicId, peer) { window.inspectContainerCallback = null; // Reset the callback } break; - - case 'logs': + + case 'logs': console.log('[INFO] Handling logs output...'); if (window.handleLogOutput) { window.handleLogOutput(response); @@ -408,21 +408,24 @@ function addConnection(topicHex) { connectionItem.className = 'list-group-item d-flex align-items-center justify-content-between'; connectionItem.dataset.topicId = topicId; connectionItem.innerHTML = ` -
-
- ${topicId} - -

-
- - - +
+ +
+ ${topicId} +
+ +
+
+ + + +
`; @@ -732,37 +735,39 @@ function renderContainers(containers, topicId) { const row = document.createElement('tr'); row.dataset.containerId = containerId; // Store container ID for reference row.innerHTML = ` - ${name} - ${image} - ${container.State || 'Unknown'} - 0 - 0 - ${ipAddress} - - - - - - - - + ${name} + ${image} + ${container.State || 'Unknown'} + 0 + 0 + ${ipAddress} + +
+ + + + + + + +
+ + `; - -`; containerList.appendChild(row); // Add event listener for duplicate button const duplicateBtn = row.querySelector('.action-duplicate'); diff --git a/index.html b/index.html index a84d51c..d1c44ba 100644 --- a/index.html +++ b/index.html @@ -375,6 +375,57 @@ background-color: #999; /* Even lighter color when active */ } + + +.list-group-item { + position: relative; + display: block; + padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x); + color: var(--bs-list-group-color); + text-decoration: none; + background-color: #2c2c2c + +; +} + +.list-group-item { + position: relative; + display: block; + padding: var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x); + color: #ffffff; + text-decoration: none; + background-color: #2c2c2c; +} + +.text-primary { + --bs-text-opacity: 1; + color: rgb(254 254 254) !important; +} + +.list-group { + --bs-list-group-color: var(--bs-body-color); + --bs-list-group-bg: var(--bs-body-bg); + --bs-list-group-border-color: transparent; + --bs-list-group-border-width: var(--bs-border-width); + --bs-list-group-border-radius: var(--bs-border-radius); + --bs-list-group-item-padding-x: 1rem; + --bs-list-group-item-padding-y: 0.5rem; + --bs-list-group-action-color: var(--bs-secondary-color); + --bs-list-group-action-hover-color: var(--bs-emphasis-color); + --bs-list-group-action-hover-bg: var(--bs-tertiary-bg); + --bs-list-group-action-active-color: var(--bs-body-color); + --bs-list-group-action-active-bg: var(--bs-secondary-bg); + --bs-list-group-disabled-color: var(--bs-secondary-color); + --bs-list-group-disabled-bg: var(--bs-body-bg); + --bs-list-group-active-color: #fff; + --bs-list-group-active-bg: #0d6efd; + --bs-list-group-active-border-color: #0d6efd; + display: flex; + flex-direction: column; + padding-left: 0; + margin-bottom: 0; + border-radius: var(--bs-list-group-border-radius); +} @@ -390,13 +441,15 @@

Connections

    -
    - - + + +
    +
    @@ -589,6 +642,10 @@