mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Borders to component properties
This commit is contained in:
@@ -30,7 +30,7 @@ use tui::{
|
||||
layout::{Corner, Rect},
|
||||
style::Style,
|
||||
text::{Span, Spans},
|
||||
widgets::{Block, BorderType, Borders, List, ListItem},
|
||||
widgets::{Block, BorderType, List, ListItem},
|
||||
};
|
||||
|
||||
// -- state
|
||||
@@ -107,7 +107,7 @@ impl Component for Table {
|
||||
List::new(list_items)
|
||||
.block(
|
||||
Block::default()
|
||||
.borders(Borders::ALL)
|
||||
.borders(self.props.borders)
|
||||
.border_style(Style::default())
|
||||
.border_type(BorderType::Rounded)
|
||||
.title(title),
|
||||
|
||||
Reference in New Issue
Block a user