feat(tafsir): step between verses and resize the floating card - #53
Merged
Merged
Conversation
Both tafsir surfaces get previous/next verse buttons. They move one verse at a time within the current Surah, so the recitation strip follows every verse even where an edition comments on a run of them; the verse label now shows the verse on show beside the run it belongs to. The reader scrolls to the new verse only when it is off screen. The floating card gets a corner grip (drag, arrow keys, double-click to reset). The size is saved in tafsir_card_width/tafsir_card_height and fitted to the window on every placement, so the card never extends off screen. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Previous/next verse — both the floating card and the side panel get chevron buttons in their header.
2:3 on 2:1–5, so a step inside a run is still visible.revealAyahinfollow-scroll.ts, sharing the lookup with recitation follow).Resizable floating card
tafsir_card_width/tafsir_card_height(0 = automatic) in the TS defaults, Rust model,load_settingsandschema.sqldefaults. No migration needed.The side panel was already resizable (left-edge handle) and is unchanged.
Test plan
🤖 Generated with Claude Code