Reveal the flashcard answer by tapping the card, not a separate button
Matches the mockup: the "Show Answer" button is replaced by an in-card "Tap card to reveal answer" hint, and clicking anywhere on the card reveals it (guarded the same way Space already was - only while at the live card and not yet revealed).
This commit is contained in:
@@ -135,8 +135,8 @@ func _run() -> void:
|
||||
screen._go_next()
|
||||
_assert(screen.front_label.text == "P3(live)" and screen.history_cursor == screen.session_history.size(),
|
||||
"stepping past the last history entry should return to the live card")
|
||||
_assert(screen.reveal_button.visible and not screen.grade_row.visible,
|
||||
"returning to a live, unrevealed card should restore the reveal prompt")
|
||||
_assert(screen.tap_hint_label.visible and not screen.grade_row.visible,
|
||||
"returning to a live, unrevealed card should restore the tap-to-reveal hint")
|
||||
|
||||
screen._go_next()
|
||||
_assert(screen.session_history.size() == 3 and screen.session_history[2]["action"] == "skipped" and screen.session_history[2]["card_id"] == "card-3",
|
||||
|
||||
Reference in New Issue
Block a user