From 1374af84395c940989eddc18d0b392d6d90fcb68 Mon Sep 17 00:00:00 2001 From: landon Date: Wed, 16 Sep 2026 20:09:33 -0500 Subject: [PATCH] fix: Use width_range(260-600) as default, remove explicit default_width This uses the lower bound of the range as the default width, which should work better with the resizable panel. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- src/app/file_list.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/file_list.rs b/src/app/file_list.rs index bd68dfc..13ed037 100644 --- a/src/app/file_list.rs +++ b/src/app/file_list.rs @@ -166,11 +166,10 @@ impl App { let show_files = self.config.show_file_panel; egui::SidePanel::left("files") .resizable(true) - .default_width(260.0) // A hard ceiling: the panel is sized from its content, so any row // that asks for more width than there is would otherwise push it - // wider every frame. - .width_range(160.0..=600.0) + // wider every frame. Default width is set via the range's lower bound. + .width_range(260.0..=600.0) .show_animated(ctx, show_files, |ui| { // The default theme renders unselected list rows fairly dim; bump // the widget text colours so file names stay legible (especially in