aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2023-03-08 09:37:47 +0100
committerJoris2023-03-08 09:38:22 +0100
commit1694c04364f8e9fb42b6232ae6f6cac9cf8af2d8 (patch)
tree35b5f030bc217d375c3276197c01e91885513c8f
parented7f9bf9f6da7f8b790085b74c437bbb42787141 (diff)
Remove focus on the question when response is empty
-rw-r--r--src/gui/question.rs10
1 files changed, 0 insertions, 10 deletions
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<B: Backend>(terminal: &mut Terminal<B>, 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]);