@64mb/freelens-power 2.21.7 → 2.21.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/renderer.js CHANGED
@@ -21246,7 +21246,7 @@ function startExtensionUpdateNotifications() {
21246
21246
  };
21247
21247
  const started = () => {
21248
21248
  attempt = {
21249
- version: current?.installedVersion ?? "2.21.7",
21249
+ version: current?.installedVersion ?? "2.21.8",
21250
21250
  startedAt: Date.now()
21251
21251
  };
21252
21252
  try {
@@ -33260,7 +33260,6 @@ function mountMonitoring(onOpenDiagnostics, getMetricsEnabled, getClusterDiagnos
33260
33260
  diagnosticsHost = document.createElement("div");
33261
33261
  diagnosticsHost.setAttribute("data-freelens-power-cluster-diagnostics", "");
33262
33262
  diagnosticsHost.style.minWidth = "0";
33263
- diagnosticsHost.style.gridColumn = "1 / -1";
33264
33263
  overview.append(diagnosticsHost);
33265
33264
  renderIntoContainer(/* @__PURE__ */ jsx$1(ClusterDiagnosticsOverview, { onOpenDiagnostics }), diagnosticsHost);
33266
33265
  } else if (!clusterDiagnostics && diagnosticsHost) {
@@ -33270,6 +33269,10 @@ function mountMonitoring(onOpenDiagnostics, getMetricsEnabled, getClusterDiagnos
33270
33269
  }
33271
33270
  if (diagnosticsHost) {
33272
33271
  const issues = Array.from(overview.children).find((child) => child.matches("[class*=\"ClusterIssues\"]"));
33272
+ const area = issues ? getComputedStyle(issues).gridArea : "auto";
33273
+ diagnosticsHost.style.gridColumn = "";
33274
+ diagnosticsHost.style.gridArea = area || "auto";
33275
+ if (!area || area === "auto") diagnosticsHost.style.gridColumn = "1 / -1";
33273
33276
  if (issues && diagnosticsHost.nextElementSibling !== issues) issues.before(diagnosticsHost);
33274
33277
  else if (!issues && overview.lastElementChild !== diagnosticsHost) overview.append(diagnosticsHost);
33275
33278
  }
@@ -33400,6 +33403,10 @@ function mountMonitoring(onOpenDiagnostics, getMetricsEnabled, getClusterDiagnos
33400
33403
  const stopDiagnostics = reaction(() => [getMetricsEnabled(), getClusterDiagnostics()], () => {
33401
33404
  update();
33402
33405
  });
33406
+ const onResize = () => {
33407
+ if (!stopped) update();
33408
+ };
33409
+ window.addEventListener("resize", onResize);
33403
33410
  const observer = new MutationObserver(() => {
33404
33411
  update();
33405
33412
  });
@@ -33414,6 +33421,7 @@ function mountMonitoring(onOpenDiagnostics, getMetricsEnabled, getClusterDiagnos
33414
33421
  return () => {
33415
33422
  stopped = true;
33416
33423
  stopDiagnostics();
33424
+ window.removeEventListener("resize", onResize);
33417
33425
  generation++;
33418
33426
  window.clearInterval(timer);
33419
33427
  observer.disconnect();