Skip to content

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.

Home: a long drive name is cut short instead of pushing its card apart

gelenmedya16ef87600a59
diff --git a/crates/rf-app/src/folder_view.rs b/crates/rf-app/src/folder_view.rs
index cb4a1951..ace6d76d 100644
--- a/crates/rf-app/src/folder_view.rs
+++ b/crates/rf-app/src/folder_view.rs
@@ -7065,16 +7065,20 @@ impl FolderView {
let menu_root = root.clone();
drive_grid = drive_grid.child(
card(("drive", i).into())
+ .min_w_0()
.child(
h_flex()
.gap_3()
.items_center()
.child(home_icon(pack_icon(cx, places::drive_icon_names(d.kind), 28.).or(shell_icon), places::drive_icon(&d), 28., (!windows_file_explorer_theme).then_some(p.text_secondary)))
.child(
+ // (min_w_0 and the ellipsis: a long network drive name (a share name with its server) pushed
+ // the bar and the usage button out of the card; Discord, 2026-12-02)
v_flex()
.flex_1()
+ .min_w_0()
.gap_1()
- .child(div().text_sm().child(crate::places::drive_name(&d)))
+ .child(div().text_sm().min_w_0().overflow_hidden().text_ellipsis().whitespace_nowrap().child(crate::places::drive_name(&d)))
.child(
div()
.h(px(6.))
@@ -7087,10 +7091,14 @@ impl FolderView {
.child(
h_flex()
.justify_between()
+ .gap_2()
+ .min_w_0()
+ .overflow_hidden()
+ .whitespace_nowrap()
.text_xs()
.text_color(p.text_secondary)
- .child(if d.total > 0 { format!("{} {} / {}", format::size(d.free), t!("boş"), format::size(d.total)) } else { String::new() })
- .when(d.total > 0, |r| r.child(format!("{}%", (frac * 100.).round() as u32))),
+ .child(div().min_w_0().overflow_hidden().text_ellipsis().child(if d.total > 0 { format!("{} {} / {}", format::size(d.free), t!("boş"), format::size(d.total)) } else { String::new() }))
+ .when(d.total > 0, |r| r.child(div().flex_shrink_0().child(format!("{}%", (frac * 100.).round() as u32)))),
),
)
// where the space goes, as its own tab (the card itself opens the drive)
@@ -7098,6 +7106,7 @@ impl FolderView {
div()
.id(("drive-usage", i))
.size(px(28.))
+ .flex_shrink_0()
.flex()
.items_center()
.justify_center()