Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truncated text is expanding out due to not fixing the size of the view #1470

Merged

Conversation

tedbrosby
Copy link
Contributor

@tedbrosby tedbrosby commented Sep 7, 2024

Issues covered

#1463: Some quoted notes are rendered offscreen

Description

Hi Nos team!
I noticed this issue and spent an hour or so diagnosing it. Unfortunately the CompactNoteView only has a single unit test. But I realized none of the preview data includes a quoted reference with the referenced note having long text and a wide image.
I tried to replicate it but I think my contextual knowledge of note references is lacking.
Either way, I hope this PR saves you some time.

How to test

  1. Tap search button on tab bar
  2. In search field, paste 8f95884af2646903601b2bf1d535f849a1fd1adcf4b57bc1c49b9a42efc2f94f
  3. Scroll down slowly until the August 23rd note is displayed
  4. The quote preview is now constrained with the width of the parent note

Screenshots/Video

Screenshot 2024-09-06 at 11 23 22 PM

Copy link

github-actions bot commented Sep 7, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@tedbrosby
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Sep 7, 2024
Copy link
Contributor

@bryanmontz bryanmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @tedbrosby! I confirmed that this resolves the issue.

Copy link
Contributor

@joshuatbrown joshuatbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the contribution, @tedbrosby! This works perfectly for me!

@joshuatbrown joshuatbrown added this pull request to the merge queue Sep 9, 2024
Merged via the queue into planetary-social:main with commit 4e1ea0e Sep 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants