about summary refs log tree commit diff
path: root/src/view/com/post/Post.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-04 12:14:21 -0700
committerGitHub <noreply@github.com>2023-08-04 12:14:21 -0700
commitd9cf37aecf5554a0efbc1da8b564f6933477d3c6 (patch)
tree1099dfd129bd7af8c770e00f99307f079a8e46a3 /src/view/com/post/Post.tsx
parentc42b9c1b4eacfefac1e14174396433384df16ea0 (diff)
downloadvoidsky-d9cf37aecf5554a0efbc1da8b564f6933477d3c6.tar.zst
Collection of small UI fixes & improvements (#1104)
* Fix black bar appearing in link card images

* Include QPs in posts cache

* Fix like color for feed likes in notifications

* Fix post embed spacing
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r--src/view/com/post/Post.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx
index 4b03d4667..f6873b0a0 100644
--- a/src/view/com/post/Post.tsx
+++ b/src/view/com/post/Post.tsx
@@ -265,9 +265,11 @@ const PostLoaded = observer(
                   />
                 </View>
               ) : undefined}
-              <ContentHider moderation={item.moderation.embed} style={s.mb10}>
-                <PostEmbeds embed={item.post.embed} style={s.mb10} />
-              </ContentHider>
+              {item.post.embed ? (
+                <ContentHider moderation={item.moderation.embed} style={s.mb10}>
+                  <PostEmbeds embed={item.post.embed} />
+                </ContentHider>
+              ) : null}
               {needsTranslation && (
                 <View style={[pal.borderDark, styles.translateLink]}>
                   <Link href={translatorUrl} title="Translate">