Skip to content

Commit

Permalink
make table full width
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Aug 19, 2024
1 parent 444efc6 commit daf2c7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/account/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Accounts {

table
.load_preset(presets::NOTHING)
.set_content_arrangement(ContentArrangement::Dynamic)
.set_content_arrangement(ContentArrangement::DynamicFullWidth)
.set_header(Row::from([
Cell::new("NAME").add_attribute(Attribute::Reverse),
Cell::new("BACKENDS").add_attribute(Attribute::Reverse),
Expand Down
2 changes: 1 addition & 1 deletion src/email/envelope/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl Envelopes {

table
.load_preset(presets::NOTHING)
.set_content_arrangement(ContentArrangement::Dynamic)
.set_content_arrangement(ContentArrangement::DynamicFullWidth)
.set_header(Row::from([
Cell::new("ID").add_attribute(Attribute::Reverse),
Cell::new("FLAGS").add_attribute(Attribute::Reverse),
Expand Down
3 changes: 2 additions & 1 deletion src/folder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pub mod arg;
pub mod command;
pub mod config;

use comfy_table::{presets, Attribute, Cell, Row, Table};
use comfy_table::{presets, Attribute, Cell, ContentArrangement, Row, Table};
use serde::{Serialize, Serializer};
use std::{fmt, ops::Deref};

Expand Down Expand Up @@ -41,6 +41,7 @@ impl Folders {

table
.load_preset(presets::NOTHING)
.set_content_arrangement(ContentArrangement::DynamicFullWidth)
.set_header(Row::from([
Cell::new("NAME").add_attribute(Attribute::Reverse),
Cell::new("DESC").add_attribute(Attribute::Reverse),
Expand Down

0 comments on commit daf2c7c

Please sign in to comment.