diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/question.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/question.rs b/src/gui/question.rs index e56249f..12ffa6f 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -9,7 +9,7 @@ use tui::{ backend::Backend, layout::{Alignment, Constraint, Direction, Layout}, style::{Color, Modifier, Style}, - text::{Span, Spans, Text}, + text::{Line, Span, Text}, widgets::{Paragraph, Wrap}, Terminal, }; @@ -120,7 +120,7 @@ pub fn ask<B: Backend>(terminal: &mut Terminal<B>, title: &str, card: &Card) -> }) .collect::<Vec<Vec<Span>>>() .concat(); - let p = Paragraph::new(Text::from(Spans::from(tabs))).alignment(Alignment::Center); + let p = Paragraph::new(Text::from(Line::from(tabs))).alignment(Alignment::Center); f.render_widget(p, chunks[4]); } })?; |