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:
hz
2026-07-22 17:21:23 -05:00
parent 7f76ca0fdc
commit e8d615985b
3 changed files with 45 additions and 25 deletions
+2 -2
View File
@@ -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",