Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

fix(ui): recut #918 src/ui/rightPanelRail.js on current main

Kevin Rajan21a90b41442a
diff --git a/src/ui/rightPanelRail.js b/src/ui/rightPanelRail.js
index 3b85bb896..b62be511c 100644
--- a/src/ui/rightPanelRail.js
+++ b/src/ui/rightPanelRail.js
@@ -72,7 +72,9 @@ export function layoutRightPanelRail({
// A floating (lifted-out) panel is not laid out by the rail.
const panels = [...stack.children].filter(
(panel) =>
- panel.matches('[data-panel-id]:not(.panel-floating)') && !panel.hidden,
+ panel.matches('[data-panel-id]:not(.panel-floating)') &&
+ !panel.hidden &&
+ getComputedStyle(panel).display !== 'none',
);
if (!hud.visible || hud.variant !== 'tactical') {
for (const panel of panels.filter((item) =>