summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-06-23 13:49:32 +0200
committerCanop <cano.petrole@gmail.com>2021-06-23 13:49:32 +0200
commit47eb104a5bb84e5886e53e1bcdf6ab9c0243330a (patch)
treedb65fd483aa7d57999fbff90caceaf74d11f6eb3 /src
parentd5b5840a786da77faa575941450310be2f27791e (diff)
version 1.6.1v1.6.1
Diffstat (limited to 'src')
-rw-r--r--src/filesystems/filesystems_state.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filesystems/filesystems_state.rs b/src/filesystems/filesystems_state.rs
index 83ed728..0d9927a 100644
--- a/src/filesystems/filesystems_state.rs
+++ b/src/filesystems/filesystems_state.rs
@@ -247,7 +247,7 @@ impl PanelState for FilesystemState {
if con.show_selection_mark {
wc_fs += 1;
}
- let w_dsk = 3;
+ let w_dsk = 5; // max width of a lfs-core disk type
let w_type = mounts.iter()
.map(|m| m.info.fs_type.chars().count())
.max().unwrap_or(0)
@@ -304,7 +304,7 @@ impl PanelState for FilesystemState {
cw.queue_g_string(&styles.default, format!("{:width$}", "filesystem", width = wc_fs))?;
cw.queue_char(border_style, '│')?;
if e_dsk {
- cw.queue_g_string(&styles.default, "dsk".to_string())?;
+ cw.queue_g_string(&styles.default, " dsk ".to_string())?;
cw.queue_char(border_style, '│')?;
}
if e_type {
@@ -373,10 +373,10 @@ impl PanelState for FilesystemState {
txt_style,
match_style,
);
- matched_string.fill(3, Alignment::Left);
+ matched_string.fill(5, Alignment::Center);
matched_string.queue_on(&mut cw)?;
} else {
- cw.queue_g_string(txt_style, " ".to_string())?;
+ cw.queue_g_string(txt_style, " ".to_string())?;
}
cw.queue_char(border_style, '│')?;
}