From 1694c04364f8e9fb42b6232ae6f6cac9cf8af2d8 Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 8 Mar 2023 09:37:47 +0100 Subject: Remove focus on the question when response is empty --- src/gui/question.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/gui/question.rs b/src/gui/question.rs index 6694c08..e56249f 100644 --- a/src/gui/question.rs +++ b/src/gui/question.rs @@ -56,16 +56,6 @@ pub fn ask(terminal: &mut Terminal, title: &str, card: &Card) -> f.render_widget(d1, chunks[0]); let question = Paragraph::new(util::center_vertically(chunks[1], &card.question)) - .style(match state.answer { - Answer::Write => { - if state.input.trim().is_empty() { - Style::default().fg(Color::Yellow) - } else { - Style::default() - } - } - _ => Style::default(), - }) .alignment(Alignment::Center); f.render_widget(question, chunks[1]); -- cgit v1.2.3