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

Display non-post embeds in composer preview #5647

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Display non-post embeds in composer preview #5647

merged 4 commits into from
Oct 24, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Oct 8, 2024

Resolves #5608 (review).

This finally adds previews for non-post records. Including fixing the special case (presence of quote will now correctly hide post record previews since they won't actually make it to the post.)

The "X" button is not aligned perfectly for all cases, feel free to edit it up. Fixed.

Note that https://go.bsky.app/* links don't currently go through this codepath in development because resolveShortLink doesn't work in development. So if you try that one, you should see a regular link preview. It looks almost the same tho.

Test Plan

Screenshot 2024-10-21 at 20 07 11 Screenshot 2024-10-21 at 20 08 33 Screenshot 2024-10-21 at 20 09 14

Copy link

github-actions bot commented Oct 8, 2024

Old size New size Diff
7.9 MB 7.9 MB 108 B (0.00%)

@gaearon gaearon force-pushed the embed-other-3 branch 2 times, most recently from cc0147b to 65c9735 Compare October 21, 2024 19:20
Base automatically changed from embed-others-2 to main October 24, 2024 19:43
This should not be needed because starter pack composer preview now goes through the record preview codepath, just like in the feed/post view.
Remove the implicit top padding in record embeds and make it conditional, which is similar to how we treat external link embeds. This makes the X button appear in the same place for record embeds as with links.
@arcalinea arcalinea temporarily deployed to embed-other-3 - social-app PR #5647 October 24, 2024 19:44 — with Render Destroyed
@gaearon gaearon merged commit 0ecc98d into main Oct 24, 2024
6 checks passed
@gaearon gaearon deleted the embed-other-3 branch October 24, 2024 19:44
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