@oh-my-pi/pi-tui 16.0.8 → 16.0.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.0.9] - 2026-06-18
6
+
7
+ ### Fixed
8
+
9
+ - Fixed bottom-anchored fullscreen overlays keeping their body rows but clipping off footer actions when terminal-height clamping is applied, restoring plan-mode approval options on short or stale-size terminals ([#2957](https://github.com/can1357/oh-my-pi/issues/2957)).
10
+
5
11
  ## [16.0.8] - 2026-06-18
6
12
 
7
13
  ### Fixed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-tui",
4
- "version": "16.0.8",
4
+ "version": "16.0.9",
5
5
  "description": "Terminal User Interface library with differential rendering for efficient text-based applications",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -37,8 +37,8 @@
37
37
  "fmt": "biome format --write ."
38
38
  },
39
39
  "dependencies": {
40
- "@oh-my-pi/pi-natives": "16.0.8",
41
- "@oh-my-pi/pi-utils": "16.0.8",
40
+ "@oh-my-pi/pi-natives": "16.0.9",
41
+ "@oh-my-pi/pi-utils": "16.0.9",
42
42
  "lru-cache": "11.5.1",
43
43
  "marked": "^18.0.5"
44
44
  },
package/src/tui.ts CHANGED
@@ -2309,7 +2309,11 @@ export class TUI extends Container {
2309
2309
  const { width, maxHeight } = this.#resolveOverlayLayout(options, 0, termWidth, termHeight);
2310
2310
  let overlayLines = component.render(width);
2311
2311
  if (overlayLines.length > maxHeight) {
2312
- overlayLines = overlayLines.slice(0, maxHeight);
2312
+ const anchor = options?.anchor ?? "center";
2313
+ overlayLines =
2314
+ anchor === "bottom-left" || anchor === "bottom-center" || anchor === "bottom-right"
2315
+ ? overlayLines.slice(overlayLines.length - maxHeight)
2316
+ : overlayLines.slice(0, maxHeight);
2313
2317
  }
2314
2318
  const { row, col } = this.#resolveOverlayLayout(options, overlayLines.length, termWidth, termHeight);
2315
2319
  for (let i = 0; i < overlayLines.length; i++) {