mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:06:03 +02:00
Revert "Add an option to move header on borders" (#9908)
Reverts nushell/nushell#9796 This is just draft since we're seeing some issues with the latest fixes to table drawing that just landed with #9796. We're hoping to get these fixed, but if we're not able to fix them before the next release, we'll need to revert (hence this PR, just in case we need it).
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use nu_ansi_term::{Color, Style};
|
||||
use nu_color_config::TextStyle;
|
||||
use nu_table::{NuTable, NuTableConfig, TableTheme};
|
||||
use nu_table::{NuTable, TableConfig, TableTheme};
|
||||
use tabled::grid::records::vec_records::CellInfo;
|
||||
|
||||
fn main() {
|
||||
@ -29,11 +29,8 @@ fn main() {
|
||||
table.set_data_style(TextStyle::basic_left());
|
||||
table.set_header_style(TextStyle::basic_center().style(Style::new().on(Color::Blue)));
|
||||
|
||||
let table_cfg = NuTableConfig {
|
||||
theme: TableTheme::rounded(),
|
||||
with_header: true,
|
||||
..Default::default()
|
||||
};
|
||||
let theme = TableTheme::rounded();
|
||||
let table_cfg = TableConfig::new().theme(theme).with_header(true);
|
||||
|
||||
let output_table = table
|
||||
.draw(table_cfg, width)
|
||||
|
Reference in New Issue
Block a user