mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 15:14:27 +00:00
refactor(examples): add missing margin at the bottom of the header of table in the demo
This commit is contained in:
parent
f933d892aa
commit
117098d2d2
1 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,8 @@ where
|
||||||
let table = Table::new(rows)
|
let table = Table::new(rows)
|
||||||
.header(
|
.header(
|
||||||
Row::new(vec!["Server", "Location", "Status"])
|
Row::new(vec!["Server", "Location", "Status"])
|
||||||
.style(Style::default().fg(Color::Yellow)),
|
.style(Style::default().fg(Color::Yellow))
|
||||||
|
.bottom_margin(1),
|
||||||
)
|
)
|
||||||
.block(Block::default().title("Servers").borders(Borders::ALL))
|
.block(Block::default().title("Servers").borders(Borders::ALL))
|
||||||
.widths(&[
|
.widths(&[
|
||||||
|
|
Loading…
Reference in a new issue