Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit 9f022f2

Browse files
Revert "Hide empty entity profile panel when no metrics to display"
This reverts commit 0cfe7c2.
1 parent 0cfe7c2 commit 9f022f2

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

templates/_main.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,9 @@ window.addEventListener("load", function() {
227227

228228
var hasMetrics = metrics.length > 0;
229229
var hasEdges = edgeTypes.length > 0;
230-
var hasFileBar = ep.sl > 0 && ep.el > 0;
231-
232-
if (!hasMetrics && !hasEdges && !hasFileBar) {
233-
var epPanel = epChartEl.closest(".chart-panel, .entity-profile-panel");
234-
if (epPanel) epPanel.style.display = "none";
235-
}
236-
237230
var metricsH = hasMetrics ? metrics.length * 32 + 8 : 0;
238231
var edgesH = hasEdges ? Math.max(edgeTypes.length * 22 + 40, 56) : 0;
239-
var fileBarH = hasFileBar ? 44 : 0;
232+
var fileBarH = (ep.sl > 0 && ep.el > 0) ? 44 : 0;
240233
var totalH = metricsH + edgesH + fileBarH + 4;
241234
if (totalH < 40) totalH = 40;
242235

0 commit comments

Comments
 (0)