From 10ad7644a2e59589a2e30df4f3dc03c3d1fbd093 Mon Sep 17 00:00:00 2001 From: landon Date: Wed, 16 Sep 2026 20:28:58 -0500 Subject: [PATCH] Revert: Back to show_animated, remove row_width cap Trying show_animated again with width_range(260-600) and no row_width cap. The width_range should prevent infinite expansion while allowing resize. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- src/app/file_list.rs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/app/file_list.rs b/src/app/file_list.rs index 23414c6..9c71b92 100644 --- a/src/app/file_list.rs +++ b/src/app/file_list.rs @@ -164,11 +164,10 @@ impl App { /// editor rather than leaving an empty column. pub(super) fn left_pane(&mut self, ctx: &egui::Context) { let show_files = self.config.show_file_panel; - if show_files { - egui::SidePanel::left("files") - .resizable(true) - .width_range(260.0..=600.0) - .show(ctx, |ui| { + egui::SidePanel::left("files") + .resizable(true) + .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 // dark mode) without affecting the rest of the app. @@ -248,8 +247,7 @@ impl App { // Measured once, from the panel rather than from the scrolled // content: reading `available_width()` inside a row makes the // content's width depend on the content's width. - // Cap the width to prevent the panel from expanding infinitely. - let row_width = ui.available_width().min(580.0); + let row_width = ui.available_width(); let nested = rows.iter().any(|r| r.depth > 0); egui::ScrollArea::vertical() @@ -605,7 +603,6 @@ impl App { }); } }); - } } }