From c11a060706138e78ff6117274a65d0d45a7e0f55 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Mon, 26 Jan 2026 22:53:40 +0100 Subject: [PATCH] put icons in the center of the column --- frontend/js/hosts.js | 13 ++++++++++--- settings/config.py | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/js/hosts.js b/frontend/js/hosts.js index df9096f..d9321ee 100644 --- a/frontend/js/hosts.js +++ b/frontend/js/hosts.js @@ -110,17 +110,24 @@ async function loadHosts() { const sslEnabled = !!h.ssl_enabled; tdSSL.setAttribute("data-value", sslEnabled ? "true" : "false"); tdSSL.setAttribute("aria-label", sslEnabled ? "SSL attivo" : "SSL non attivo"); + // center icon + tdSSL.style.textAlign = "center"; + tdSSL.style.verticalAlign = "middle"; if (sslEnabled) { - tdSSL.innerHTML = ''; + const icon = document.createElement("i"); + icon.className = "bi bi-shield-lock-fill icon icon-static"; + icon.setAttribute("aria-hidden", "true"); + tdSSL.appendChild(icon); } tr.appendChild(tdSSL); // Actions const tdActions = document.createElement("td"); tdActions.className = "actions"; - const id = Number(h.id); - + // center icons + tdActions.style.textAlign = "center"; + tdActions.style.verticalAlign = "middle"; tdActions.innerHTML = `