From 6b43e2f5cd9c7950c19e4808f6f8fba5b0070081 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 10 May 2026 16:33:36 -0400 Subject: [PATCH] fix(gui): cap tool preset and persona panel child heights - Tool preset manager: h1 max 250px, h2 max 200px - Persona editor: h1 max 300px Prevents excessive empty space when panels are mostly empty. --- src/gui_2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui_2.py b/src/gui_2.py index 91f6c4c..931ec97 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -1764,6 +1764,8 @@ class App: elif self._tool_list_open: h1, h2 = rem_y, 0 elif self._bias_list_open: h1, h2 = 0, rem_y else: h1, h2 = 0, 0 + h1 = min(h1, 250) + h2 = min(h2, 200) imgui.dummy(imgui.ImVec2(0, 4)) opened_t = imgui.collapsing_header("Categories & Tools", imgui.TreeNodeFlags_.default_open) @@ -1953,6 +1955,7 @@ class App: elif self._persona_models_open: h1, h2 = rem_y, 0 elif self._persona_prompt_open: h1, h2 = 0, rem_y else: h1, h2 = 0, 0 + h1 = min(h1, 300) imgui.dummy(imgui.ImVec2(0, 4)) opened_models = imgui.collapsing_header("Preferred Models", imgui.TreeNodeFlags_.default_open)