We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1f698 commit eca1130Copy full SHA for eca1130
src/views/table/columns.rs
@@ -1,5 +1,6 @@
1
use ratatui::prelude::Constraint;
2
3
+const NAME_MIN_LEN: u16 = 39; // Below this width, we don't show any other columns
4
const MODE_LEN: u16 = 10;
5
const MODIFIED_LEN: u16 = 12;
6
const SIZE_LEN: u16 = 7;
@@ -80,7 +81,7 @@ fn calculate_constraints(width: u16) -> (Vec<Constraint>, u16) {
80
81
let mut name_column_width = width;
82
83
// Add columns in order of priority based on available width
- let mut min_width = width;
84
+ let mut min_width = NAME_MIN_LEN;
85
86
// Add Modified column if there's enough space
87
if width > min_width {
0 commit comments