@danypops/pi-packed 0.13.1 → 0.13.2
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 +15 -4
- package/package.json +1 -1
package/extension/src/tui.ts
CHANGED
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
* extensions, c jump to full resource config, f find/install new
|
|
9
9
|
* packages, s settings. The panel itself is a real bordered (rounded)
|
|
10
10
|
* floating overlay (`ctx.ui.custom` with overlay:true, Malevich's
|
|
11
|
-
* Envelope for the box),
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Envelope for the box), positioned at 40% of terminal height (pi-tui's
|
|
12
|
+
* own row percentage, not a fixed row count -- scales with the real
|
|
13
|
+
* terminal, unlike the anchor:"top-center"+offsetY this replaced, which
|
|
14
|
+
* was pinned 1 row below the absolute top on any terminal size). Enter
|
|
15
|
+
* opens a second, smaller overlay action menu on top of it. U's batch update stays on
|
|
14
16
|
* this same package list -- progress renders inline next to the row
|
|
15
17
|
* currently being updated, not as a separate screen. Rows render through
|
|
16
18
|
* Malevich's Table (real column-aligned Package/Version/status cells,
|
|
@@ -576,5 +578,14 @@ function renderPanel(ctx: ExtensionCommandContext, natives: Natives, initialRows
|
|
|
576
578
|
tui.requestRender();
|
|
577
579
|
},
|
|
578
580
|
};
|
|
579
|
-
|
|
581
|
+
// row is a real percentage of terminal height (0%=top, 100%=bottom) --
|
|
582
|
+
// unlike anchor:"top-center"+offsetY (a fixed row count, effectively
|
|
583
|
+
// pinned to the very top on any terminal size), this scales with the
|
|
584
|
+
// actual screen. anchor:"center" still governs horizontal centering
|
|
585
|
+
// (row overrides only the vertical resolution). Note this isn't fully
|
|
586
|
+
// content-height-independent -- pi-tui's own row-percentage formula
|
|
587
|
+
// interpolates over the range of positions that still fit the current
|
|
588
|
+
// content height, so a shorter/taller row count shifts this somewhat;
|
|
589
|
+
// only exactly 0%/100% are perfectly jitter-free in that library.
|
|
590
|
+
}, { overlay: true, overlayOptions: { width: "70%", maxHeight: "70%", anchor: "center", row: "40%" } });
|
|
580
591
|
}
|