@pi-unipi/footer 2.1.3 → 2.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/footer",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "description": "Persistent status bar for Unipi — subscribes to UNIPI_EVENTS and renders key stats from all unipi packages",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -32,7 +32,7 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@pi-unipi/core": "2.1.3"
35
+ "@pi-unipi/core": "2.2.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@earendil-works/pi-coding-agent": "^0.80.0",
@@ -15,6 +15,7 @@ import { loadFooterSettings, saveFooterSettings } from "../config.js";
15
15
  import { PRESET_NAMES } from "../presets.js";
16
16
  import { setIconStyle } from "../rendering/icons.js";
17
17
  import type { FooterGroup, FooterSettings, SeparatorStyle, IconStyle } from "../types.js";
18
+ import { boxInnerWidth } from "@pi-unipi/core";
18
19
 
19
20
  // ─── Section types ─────────────────────────────────────────────────────
20
21
 
@@ -457,7 +458,7 @@ class FooterSettingsOverlay {
457
458
  // ─── Render ────────────────────────────────────────────────────────
458
459
 
459
460
  render(width: number): string[] {
460
- const innerWidth = Math.max(22, width - 2);
461
+ const innerWidth = boxInnerWidth(width);
461
462
  const lines: string[] = [];
462
463
 
463
464
  // Header