Repository navigation
fix(mobile): keep quote comments and save above the keyboard - #844
Merged
Merged
Conversation
Give long passages a bounded reading preview and a separate editing mode. Keep the comment and primary action visible as the keyboard reduces the available height, with compact and landscape layouts for small viewports. Fixes: #385
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.
Change
With a long passage, the mobile quote editor could leave the comment and save action below the keyboard. Give the passage its own bounded, scrollable preview and a separate Edit passage mode. The comment and full-width Add quote / Save quote action stay in a fixed footer that becomes compact when the available space above the keyboard shrinks and uses a side-by-side layout in landscape.
Render explicitly marked Markdown, preserve plain text and code formatting, and place source details and actions before the passage. Keep the 20,000-character notice inside the preview and hide it after shortening. Update the implemented behavior and status in
docs/mobile.md.Verification
bun run --filter @canopy/mobile typecheck.git diff --check.Copy audit
Pass, with no failed items. Replace the instructional banner with the concrete Edit passage action. Replace “Quotes can contain up to 20,000 characters. Keep a shorter passage.” with “This quote includes only the first 20,000 characters. Edit the passage to shorten it.” to explain the included text and the next action. New action labels use verb-first sentence case; the remove icon keeps the accessible label Remove citation. Checked short and long content at narrow and wide native viewports.
Fixes: #385