diff options
author | Wei Zhang <kweizh@gmail.com> | 2024-03-26 00:05:04 +0800 |
---|---|---|
committer | Wei Zhang <kweizh@gmail.com> | 2024-03-26 00:28:42 +0800 |
commit | 94249be76823ad12c41653fb4b85930767145186 (patch) | |
tree | 94f5f2d874573187269ca7dc174211e27d9087c0 /src | |
parent | 16181df25b3df555833b2f5f7e804b49b86515c1 (diff) |
:arrow_down: rollback the term grid to 0.1
we should consider find another alternative
Signed-off-by: Wei Zhang <kweizh@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/display.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/display.rs b/src/display.rs index da4c897..72515f6 100644 --- a/src/display.rs +++ b/src/display.rs @@ -6,7 +6,7 @@ use crate::icon::Icons; use crate::meta::name::DisplayOption; use crate::meta::{FileType, Meta}; use std::collections::HashMap; -use term_grid::{Alignment, Cell, Direction, Filling, Grid, GridOptions}; +use term_grid::{Cell, Direction, Filling, Grid, GridOptions}; use terminal_size::terminal_size; use unicode_width::UnicodeWidthStr; @@ -130,7 +130,6 @@ fn inner_display_grid( cells.push(Cell { width: get_visible_width(&block, flags.hyperlink == HyperlinkOption::Always), contents: block, - alignment: Alignment::Left, }); } } @@ -217,7 +216,6 @@ fn add_header(flags: &Flags, cells: &[Cell], grid: &mut Grid) { grid.add(Cell { width: widths[idx], contents: underlined_header, - alignment: Alignment::Left, }); } } @@ -261,7 +259,6 @@ fn inner_display_tree( cells.push(Cell { width: get_visible_width(&block, flags.hyperlink == HyperlinkOption::Always), contents: block, - alignment: Alignment::Left, }); } |