fix(gui): proper splitter placement for persona and bias panels

- Persona editor: splitter shown when BOTH models and prompt open (not just prompt)
- Bias profiles: move splitter OUTSIDE btool_scroll child, between both sections
- Fixed nesting issues causing EndTable/EndChild errors
This commit is contained in:
2026-05-10 16:40:44 -04:00
parent 5e1700744f
commit 6b612deb23
3 changed files with 39 additions and 37 deletions
+4 -4
View File
@@ -1855,9 +1855,9 @@ class App:
imgui.end_table()
imgui.tree_pop()
imgui.end_child()
if self._bias_cats_open:
imgui.button("###bias_splitter", imgui.ImVec2(-1, 4))
if imgui.is_item_active(): self._bias_split_v = max(0.1, min(0.9, self._bias_split_v + imgui.get_io().mouse_delta.y / rem_bias_y))
if self._bias_cats_open:
imgui.button("###bias_splitter", imgui.ImVec2(-1, 4))
if imgui.is_item_active(): self._bias_split_v = max(0.1, min(0.9, self._bias_split_v + imgui.get_io().mouse_delta.y / rem_bias_y))
opened_bc = imgui.collapsing_header("Category Multipliers", imgui.TreeNodeFlags_.default_open)
if opened_bc != self._bias_cats_open: self._bias_cats_open = opened_bc
@@ -2007,7 +2007,7 @@ class App:
imgui.pop_id()
for i in reversed(to_remove): self._editing_persona_preferred_models_list.pop(i)
imgui.end_child()
if self._persona_prompt_open:
if self._persona_models_open and self._persona_prompt_open:
imgui.button("###persona_splitter", imgui.ImVec2(-1, 4))
if imgui.is_item_active(): self._persona_split_v = max(0.1, min(0.9, self._persona_split_v + imgui.get_io().mouse_delta.y / rem_y))