Repository navigation
Conversation
Large-image previews, and previews without an image, give the description the full width of the bubble but still cut it off at three lines. Allow up to 15 there. Descriptions beside a thumbnail keep the three-line limit. Descriptions were also normalized to their first three lines when fetched and again when received; use the same 15-line limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Previews with a small image (most notably posts on X, whose og:image is the author's 400x400 avatar) squeezed the title, description, and domain into the column beside the 64pt thumbnail, and cut the description off at three lines. A post was usually truncated mid-sentence. When a preview has a thumbnail, a title, and a description, put the thumbnail and title side by side and give the description the full width underneath. This matches the link preview layout on Android. Previews without a description and sticker packs keep the existing layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 of 12 tasks
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.
Contributor checklist
Administrative:
Testing:
main.Commits:
main.Description
When a link preview has a small image, like the profile photo on a post from X, the text is squeezed into a narrow column next to the photo. This moves the text below the photo so it uses the full width of the message. The photo and title stay side by side on top. Android already lays out link previews this way.
Previews with a large image don't change.
The screenshot sends this post from each build:
Before and after
The text moves from beside the photo to below it, using the full width of the message.
Testing
I ran the app with #6389 and with this branch, signed in on staging, and sent the three posts above to Note to Self from each build. The link preview tests pass (
HTMLMetadataTests,LinkPreviewFetchStateTest,OWSLinkPreviewTest,ConversationViewTest).🤖 Generated with Claude Code