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
Line up the sidebar Settings row with the places above it
ishiichan-dayoa37d1d1258e3
diff --git a/crates/rf-app/src/workspace.rs b/crates/rf-app/src/workspace.rsindex 7e587d7d..02dc257e 100644--- a/crates/rf-app/src/workspace.rs+++ b/crates/rf-app/src/workspace.rs@@ -4774,7 +4774,7 @@ impl Workspace {.track_scroll(&sidebar_scroll)// (the rail keeps no room for the scrollbar: on a strip 56 px wide those 20 px and the 8 on the right put the icons, the// drives' letters and the dividers off its middle, as in the Open / Save dialog, which starts on the rail)- .when(explorer_look && !rail, |d| d.pl(px(2.)).pr_2().py_2().scrollbar_width(px(20.)))+ .when(explorer_look && !rail, |d| d.pl(px(2.)).pr_2().py_2().scrollbar_width(px(SIDEBAR_BAR_ROOM))).when(explorer_look && rail, |d| d.px(px(2.)).py_2()).when(!explorer_look, |d| d.px_2().py_1()).on_drag_move::<ExternalPaths>(cx.listener(|this, ev: &DragMoveEvent<ExternalPaths>, _, cx| {@@ -5228,7 +5228,16 @@ impl Workspace {// (not while Settings is the command bar's button: issue 295).when(!settings_on_bar, |d| {d.child(div().when(!explorer_look, |d| d.mx_2()).h(px(1.)).when(explorer_look, |d| d.flex_shrink_0()).bg(p.divider))- .child(div().px_2().py_1().child(settings))+ // (in the Explorer look with the list's own insets, so that its row lines up with the places above it: 8 px in at+ // the left, it stood 6 px right of them and ran past their right edge; on the rail, 2 px a side like the list there)+ .child(+ div()+ .when(explorer_look && !rail, |d| d.pl(px(2.)).pr(px(8. + SIDEBAR_BAR_ROOM)))+ .when(explorer_look && rail, |d| d.px(px(2.)))+ .when(!explorer_look, |d| d.px_2())+ .py_1()+ .child(settings),+ )})}@@ -5401,6 +5410,8 @@ const TAB_CHROME_W: f32 = 12. + 14. + 8. + 8. + 22. + 4. + 2.;/// The terminal button and its gap, on a tab that has one.const TAB_TERMINAL_W: f32 = 22. + 8.;const SIDEBAR_MIN: f32 = 160.;+/// The room the Explorer look's sidebar keeps at its right for the scrollbar's track.+const SIDEBAR_BAR_ROOM: f32 = 20.;/// The least height of a sidebar row: the look's own (`base`), 8 px less when compact (Settings > Appearance, issue 266).fn sidebar_row_height(base: f32, compact: bool) -> f32 {