From 218a72cc1c36da9b7930406d7ffbba10a500096c Mon Sep 17 00:00:00 2001 From: luna Date: Mon, 6 Jan 2025 22:48:19 +1030 Subject: [PATCH] fix: embed content ordering --- .../PostEmbed/app-bsky-embed-record-view.tsx | 71 +++++++++---------- 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/src/components/PostEmbed/app-bsky-embed-record-view.tsx b/src/components/PostEmbed/app-bsky-embed-record-view.tsx index 2bd32b8..25a65be 100644 --- a/src/components/PostEmbed/app-bsky-embed-record-view.tsx +++ b/src/components/PostEmbed/app-bsky-embed-record-view.tsx @@ -26,38 +26,44 @@ export const AppBskyEmbedRecordView = ({ embed }: { embed: BSkyPostEmbed }) => { ); } - if (embed.record.$type === 'app.bsky.embed.record#viewRecord' && embed.record.embeds && embed.record.embeds.length >= 1) { - return ; - } - return (
{embed.record.$type === 'app.bsky.embed.record#viewRecord' && ( -
- -
-
- - {author.displayName || author.handle} - -
-
- - - - {' · '} - - - + <> +
+ +
+
+ + {author.displayName || author.handle} + +
+
+ + + + {' · '} + + + +
-
+

+ {embed.record.facets ? ( + + ) : ( + + )} +

+ + )} {embed.record.$type === 'app.bsky.graph.defs#starterPackViewBasic' && (
@@ -106,17 +112,6 @@ export const AppBskyEmbedRecordView = ({ embed }: { embed: BSkyPostEmbed }) => {
)} - {embed.record.$type !== 'app.bsky.graph.defs#starterPackViewBasic' && - embed.record.$type !== 'app.bsky.feed.defs#generatorView' && - embed.record.$type !== 'app.bsky.graph.defs#listView' && ( -

- {embed.record.facets ? ( - - ) : ( - - )} -

- )}
); };