From f2c5ae43d75e86e0f6aef9e6f6c4651e7e20e0ad Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 12 Mar 2026 21:14:41 -0400 Subject: [PATCH] add resize splitter to dicussion hub message/response section --- src/gui_2.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui_2.py b/src/gui_2.py index b7e0f00..b8e501a 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -205,6 +205,7 @@ class App: self._nerv_alert = theme_fx.AlertPulsing() self._nerv_flicker = theme_fx.StatusFlicker() self.ui_tool_filter_category = "All" + self.ui_discussion_split_h = 300.0 def _handle_approve_tool(self, user_data=None) -> None: """UI-level wrapper for approving a pending tool execution ask.""" @@ -534,11 +535,15 @@ class App: self.show_windows["Discussion Hub"] = bool(opened) if exp: # Top part for the history - imgui.begin_child("HistoryChild", size=(0, -200)) + imgui.begin_child("HistoryChild", size=(0, -self.ui_discussion_split_h)) if self.perf_profiling_enabled: self.perf_monitor.start_component("_render_discussion_panel") self._render_discussion_panel() if self.perf_profiling_enabled: self.perf_monitor.end_component("_render_discussion_panel") imgui.end_child() + # Splitter + imgui.button("###discussion_splitter", imgui.ImVec2(-1, 4)) + if imgui.is_item_active(): + self.ui_discussion_split_h = max(150.0, min(imgui.get_window_height() - 150.0, self.ui_discussion_split_h - imgui.get_io().mouse_delta.y)) # Bottom part with tabs for message and response # Detach controls imgui.push_style_var(imgui.StyleVar_.item_spacing, imgui.ImVec2(10, 4))