Display non-post embeds in composer preview (#5647)

* Display non-post embeds in composer preview

* Remove starter pack special case from ExternalLinkEmbed

This should not be needed because starter pack composer preview now goes through the record preview codepath, just like in the feed/post view.

* Hide record ext links if quote is present

* Align remove buttons

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.
This commit is contained in:
dan
2024-10-24 20:44:24 +01:00
committed by GitHub
parent 3327c47957
commit 0ecc98d0de
5 changed files with 54 additions and 52 deletions
+1
View File
@@ -668,6 +668,7 @@ export const ComposePost = ({
<View style={a.relative} key={extLink}>
<ExternalEmbedLink
uri={extLink}
hasQuote={!!quote}
onRemove={() => {
dispatch({type: 'embed_remove_link'})
}}