From 868f54fed8f3cb911bf4ac8f7f6c50259585c484 Mon Sep 17 00:00:00 2001 From: blasty Date: Thu, 9 Jul 2026 19:17:43 +0200 Subject: cap the function pane width so it doesn't dominate wide terminals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was 42% (≈100 cols on a 240-wide term). Now 30% clamped to min 42 / max 44, and columns tightened to 10/21/7 -> a stable ~41-43 cols that fits the content: 46% on a 90-col term but only 18% at 240 (code area 194 vs ~140 before). Ctrl+B still hides it. pilot suite 57/57. --- tests/test_tui.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/test_tui.py b/tests/test_tui.py index 9a1c650..0419842 100644 --- a/tests/test_tui.py +++ b/tests/test_tui.py @@ -51,6 +51,9 @@ async def run(db): loaded = await wait_until(pilot, lambda: table.row_count > 0) check("function list populated", loaded, f"rows={table.row_count}") + left = app.query_one("#left") + check("function pane width is capped (doesn't eat the screen)", + left.size.width <= 44, f"width={left.size.width}") got_all = await wait_until( pilot, lambda: "functions" in str(status.render()) and "…" not in str(status.render()), -- cgit v1.3.1-sl0p