mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
feat: termscp 0.13.0
This commit is contained in:
@@ -7,7 +7,7 @@ use tuirealm::props::{
|
||||
Alignment, AttrValue, Attribute, Borders, Color, Style, Table, TextModifiers,
|
||||
};
|
||||
use tuirealm::tui::layout::Corner;
|
||||
use tuirealm::tui::text::{Span, Spans};
|
||||
use tuirealm::tui::text::{Line, Span};
|
||||
use tuirealm::tui::widgets::{List as TuiList, ListItem, ListState};
|
||||
use tuirealm::{MockComponent, Props, State, StateValue};
|
||||
|
||||
@@ -211,7 +211,7 @@ impl MockComponent for FileList {
|
||||
)
|
||||
})
|
||||
.collect();
|
||||
ListItem::new(Spans::from(columns))
|
||||
ListItem::new(Line::from(columns))
|
||||
})
|
||||
.collect(), // Make List item from TextSpan
|
||||
_ => Vec::new(),
|
||||
@@ -245,7 +245,7 @@ impl MockComponent for FileList {
|
||||
if matches!(attr, Attribute::Content) {
|
||||
self.states.init_list_states(
|
||||
match self.props.get(Attribute::Content).map(|x| x.unwrap_table()) {
|
||||
Some(spans) => spans.len(),
|
||||
Some(line) => line.len(),
|
||||
_ => 0,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user