diff --git a/web/static/css/vulnerability-workspace.css b/web/static/css/vulnerability-workspace.css
index 4b82b75c..b3c80307 100644
--- a/web/static/css/vulnerability-workspace.css
+++ b/web/static/css/vulnerability-workspace.css
@@ -93,7 +93,7 @@
cursor: pointer;
}
.vulnerability-domain-label[aria-pressed="true"] { color: var(--accent-color); font-weight: 600; }
-.vulnerability-host-heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
+.vulnerability-host-heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-inline-start: auto; }
.vulnerability-host-heading-actions [hidden] { display: none; }
#page-vulnerabilities .vulnerability-host-results-heading { align-items: start; }
#vulnerability-host-selection {
@@ -104,6 +104,7 @@
-webkit-line-clamp: 2;
overflow: hidden;
}
+#vulnerability-host-selection[hidden] { display: none; }
.vulnerability-table-name {
flex: 1;
min-width: 0;
diff --git a/web/static/js/vulnerability.js b/web/static/js/vulnerability.js
index 460acc7c..a266e56a 100644
--- a/web/static/js/vulnerability.js
+++ b/web/static/js/vulnerability.js
@@ -1560,9 +1560,10 @@ function renderVulnerabilityBrowserTable() {
});
const selectedOption = Array.from(document.querySelectorAll('#vulnerabilities-list [data-host-key]')).find(option => option.dataset.hostKey === selection);
const label = selection ? (selectedOption?.querySelector('[title]')?.title || selectedOption?.title || selection.slice(selection.indexOf(':') + 1))
- : vulnT(vulnerabilityView === 'task' ? 'vulnerabilityPage.allTasks' : 'vulnerabilityPage.allHosts');
+ : '';
const heading = document.getElementById('vulnerability-host-selection');
- heading.textContent = label || vulnT('vulnerabilityPage.unknownHost');
+ heading.hidden = !selection;
+ heading.textContent = selection ? label || vulnT('vulnerabilityPage.unknownHost') : '';
heading.title = heading.textContent;
document.getElementById('vulnerability-host-clear').hidden = !selection;
document.getElementById('vulnerability-host-selection-count').textContent =
diff --git a/web/templates/index.html b/web/templates/index.html
index f3069494..06b1eafd 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -47,7 +47,7 @@
-
+
@@ -7097,7 +7097,7 @@
-
+