-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace #1647: Show more than first line in note list preview
Replaces #1647 fixes: #235 The regex that captures the note list preview was only selecting the first line. This selects the remainder of the note. That string then gets sliced down to the `previewCharacterLimit`. This PR also decreases the performance cost of creating the title and preview from 1ms to 0.2ms. 1. Load production 2. Have note that has a few characters per line for a couple of lines 3. Have Settings -> Display -> Note Display set to Expanded 4. Observe only the first line of text is shown 5. Do the same on the this branch 6. Observe that multiple lines are shown up to 300 characters 7. This is the same as the Android app **Before:** <img width="331" alt="Screen Shot 2019-10-18 at 10 53 21 AM" src="https://user-images.githubusercontent.com/6817400/67104796-9690bd80-f195-11e9-959a-1edc18f58030.png"> **After:** <img width="329" alt="Screen Shot 2019-10-18 at 10 53 29 AM" src="https://user-images.githubusercontent.com/6817400/67104797-9690bd80-f195-11e9-9c17-282747d9a7da.png"> Only one developer ais required to review these changes, but anyone can perform the review. `RELEASE-NOTES.txt` was updated with: - Fixed bug that only shows the first line of text in note list preview
- Loading branch information
Showing
3 changed files
with
53 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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