2 Commits

Author SHA1 Message Date
landon 2ab78acaa6 fix: Allow file list panel to be resized beyond 460px
Changed width_range from 160.0..=460.0 to 160.0..=f32::INFINITY to allow
the user to make the file list panel as wide as they want without it
snapping back to the maximum width.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-16 20:02:41 -05:00
landon 43279810a5 fix: Change file list panel from show_animated to show
show_animated may have issues with width persistence when resizing.
Using show() instead should allow the panel to remember its width.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-09-16 19:01:38 -05:00
+3 -2
View File
@@ -169,8 +169,9 @@ impl App {
.default_width(260.0) .default_width(260.0)
// A hard ceiling: the panel is sized from its content, so any row // 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 // that asks for more width than there is would otherwise push it
// wider every frame. // wider every frame. We set a minimum width but no maximum to
.width_range(160.0..=460.0) // allow the user to make the panel as wide as they want.
.width_range(160.0..=f32::INFINITY)
.show_animated(ctx, show_files, |ui| { .show_animated(ctx, show_files, |ui| {
// The default theme renders unselected list rows fairly dim; bump // The default theme renders unselected list rows fairly dim; bump
// the widget text colours so file names stay legible (especially in // the widget text colours so file names stay legible (especially in