@danypops/pi-packed 0.19.4 → 0.19.5
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/extension/src/tui.ts +9 -10
- package/package.json +1 -1
package/extension/src/tui.ts
CHANGED
|
@@ -865,14 +865,13 @@ function renderUnifiedPanel(
|
|
|
865
865
|
tui.requestRender();
|
|
866
866
|
},
|
|
867
867
|
};
|
|
868
|
-
//
|
|
869
|
-
//
|
|
870
|
-
//
|
|
871
|
-
//
|
|
872
|
-
//
|
|
873
|
-
// content
|
|
874
|
-
//
|
|
875
|
-
//
|
|
876
|
-
|
|
877
|
-
}, { overlay: true, overlayOptions: { width: "70%", maxHeight: "70%", anchor: "center", row: "40%" } });
|
|
868
|
+
// Pinned to the very top (anchor:"top-center"+offsetY:1 -- a fixed row
|
|
869
|
+
// count regardless of terminal size), not row:"40%". The percentage
|
|
870
|
+
// positioning was tried instead but reverted: pi-tui's row-percentage
|
|
871
|
+
// formula interpolates over the range of positions that still fit the
|
|
872
|
+
// CURRENT content height, so the panel visibly jittered up and down
|
|
873
|
+
// every time a tab with a different content height (Packages' table vs.
|
|
874
|
+
// Config's shorter list) became active. A fixed top offset keeps the
|
|
875
|
+
// header pinned in place and only the footer moves as content grows.
|
|
876
|
+
}, { overlay: true, overlayOptions: { width: "70%", maxHeight: "70%", anchor: "top-center", offsetY: 1 } });
|
|
878
877
|
}
|