From f9f8bde8efd4f9bc5ed942adb826fb452ff5e753 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sun, 10 May 2026 17:54:22 -0400 Subject: [PATCH] fix(gui): ensure minimum section height of 100px for Files & Media sections --- src/gui_2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_2.py b/src/gui_2.py index 463d095..b594d99 100644 --- a/src/gui_2.py +++ b/src/gui_2.py @@ -876,11 +876,11 @@ class App: if opened: if exp: avail = imgui.get_content_region_avail().y - # Determine how many sections will render files_hdr = imgui.collapsing_header("Files") shots_hdr = imgui.collapsing_header("Screenshots") num_open = (1 if files_hdr else 0) + (1 if shots_hdr else 0) - section_h = avail / max(num_open, 1) + section_h = avail / max(num_open, 1) if num_open > 0 else avail + section_h = max(section_h, 100) # BEGIN Files section if files_hdr: self._render_files_panel(section_h - 80)