A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
Narrower empty strip after the Details columns (786)
gelenmedya51fada0afe37
diff --git a/crates/rf-app/src/folder_view.rs b/crates/rf-app/src/folder_view.rsindex d955f762..cb4a1951 100644--- a/crates/rf-app/src/folder_view.rs+++ b/crates/rf-app/src/folder_view.rs@@ -7939,13 +7939,14 @@ const RENAME_INSET: f32 = 5.;/// column takes what is free, so the strip is made on purpose. The rows, their hover and selection fill and the column headings all/// end before it; the scrollbar, when shown, lies over its outer part.///-/// HOW WIDE (a fixed 24 px does not suit big monitors): 3 % of the list's width, never-/// under 24 px and never over 56. A fixed strip is the same few millimetres on every screen, since these are the pixels Windows'+/// HOW WIDE (a fixed 24 px does not suit big monitors): 2 % of the list's width, never+/// under 20 px and never over 36 (3 % and 24 to 56 until 1.0.7: beside the preview pane the strip looked like a gap that+/// wasted the list's room, issue 786). A fixed strip is the same few millimetres on every screen, since these are the pixels Windows'/// display scaling multiplies, but beside a list 1600 px wide it is a sliver, and that is where the name column has width to/// spare. So a narrow list (a small window, two panes, the preview pane open) keeps the 24 px it can afford and a wide one gets/// up to 56. Pure.pub(crate) fn details_gutter(list_width: f32) -> f32 {- (list_width * 0.03).clamp(24., 56.)+ (list_width * 0.02).clamp(20., 36.)}#[cfg(test)]@@ -7954,13 +7955,13 @@ mod gutter_tests {#[test]fn the_strip_grows_with_the_list_between_its_two_ends() {- assert_eq!(details_gutter(0.), 24.);- assert_eq!(details_gutter(740.), 24., "a 1300 px window with the sidebar and the preview pane");- assert_eq!(details_gutter(800.), 24.);- assert_eq!(details_gutter(1200.), 36.);- assert_eq!(details_gutter(1600.), 48., "the list of the picture in issue 25 (a 2560 px window)");- assert_eq!(details_gutter(1900.), 56.);- assert_eq!(details_gutter(4000.), 56.);+ assert_eq!(details_gutter(0.), 20.);+ assert_eq!(details_gutter(740.), 20., "a 1300 px window with the sidebar and the preview pane");+ assert_eq!(details_gutter(1000.), 20.);+ assert_eq!(details_gutter(1200.), 24.);+ assert_eq!(details_gutter(1600.), 32., "the list of the picture in issue 25 (a 2560 px window)");+ assert_eq!(details_gutter(1800.), 36.);+ assert_eq!(details_gutter(4000.), 36.);}#[test]