fix(gui): limit Files & Media collapsible child height to reasonable max

The begin_child() was using (0, -40) which made it stretch to fill parent.
Changed to (0, min(len(items) * 30 + 50, 300)) so it:
- Sizes to content (30px per row + 50px header)
- Caps at 300px max height
- Allows scrolling when content overflows
This commit is contained in:
2026-05-10 16:30:54 -04:00
parent 0f180e8c4b
commit d28fd58f03
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ separate_tool_calls_panel = false
bg_shader_enabled = false
crt_filter_enabled = false
separate_task_dag = false
separate_usage_analytics = false
separate_usage_analytics = true
separate_tier1 = false
separate_tier2 = false
separate_tier3 = false
@@ -34,7 +34,7 @@ separate_external_tools = false
"Project Settings" = true
"Files & Media" = true
"AI Settings" = true
"MMA Dashboard" = true
"MMA Dashboard" = false
"Task DAG" = false
"Usage Analytics" = true
"Tier 1" = false
@@ -55,7 +55,7 @@ Theme = true
Diagnostics = false
"External Tools" = false
"Shader Editor" = false
"Undo/Redo History" = false
"Undo/Redo History" = true
[theme]
palette = "Nord Dark"
+1 -1
View File
@@ -5,7 +5,7 @@ bias_profile = "Balanced"
aggregation_strategy = "auto"
[[personas.Default.preferred_models]]
model = "MiniMax-M2.5"
model = "MiniMax-M2.7"
provider = "minimax"
temperature = 0.0
top_p = 1.0
+2 -2
View File
@@ -2921,7 +2921,7 @@ def hello():
r.destroy()
if d: self.ui_files_base_dir = d
imgui.separator()
imgui.begin_child("f_paths", imgui.ImVec2(0, -40), True)
imgui.begin_child("f_paths", imgui.ImVec2(0, min(len(self.files) * 30 + 50, 300)), True)
if imgui.begin_table("files_table", 4, imgui.TableFlags_.resizable | imgui.TableFlags_.borders):
imgui.table_setup_column("Actions", imgui.TableColumnFlags_.width_fixed, 40)
imgui.table_setup_column("File Path", imgui.TableColumnFlags_.width_stretch)
@@ -2994,7 +2994,7 @@ def hello():
r.destroy()
if d: self.ui_shots_base_dir = d
imgui.separator()
imgui.begin_child("s_paths", imgui.ImVec2(0, -40), True)
imgui.begin_child("s_paths", imgui.ImVec2(0, min(len(self.screenshots) * 30 + 50, 300)), True)
for i, s in enumerate(self.screenshots):
if imgui.button(f"x##s{i}"):
self.screenshots.pop(i)