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.
This commit is contained in:
2026-05-10 16:33:36 -04:00
parent d28fd58f03
commit 6b43e2f5cd
+3
View File
@@ -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)