about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMicah Maligie <jmaligie@gmail.com>2023-09-07 18:13:28 -0700
committerGitHub <noreply@github.com>2023-09-07 18:13:28 -0700
commitc10cb8e97276f644601e6939f5319bb00ffcbdbf (patch)
tree996ccae19c5ab2dcc47d245efa18f2f3f5ce0239
parent8a93321fb1bd4991cbb3bd1c1f09ed2196182f93 (diff)
downloadvoidsky-c10cb8e97276f644601e6939f5319bb00ffcbdbf.tar.zst
💅 disallow overflow outside of post content area(s) (#1395)
-rw-r--r--src/view/com/posts/FeedItem.tsx1
-rw-r--r--src/view/com/util/moderation/ContentHider.tsx7
2 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx
index de08af746..bc7b7a7e6 100644
--- a/src/view/com/posts/FeedItem.tsx
+++ b/src/view/com/posts/FeedItem.tsx
@@ -349,6 +349,7 @@ const styles = StyleSheet.create({
     paddingLeft: 10,
     paddingRight: 15,
     cursor: 'pointer',
+    overflow: 'hidden',
   },
   outerSmallTop: {
     borderTopWidth: 0,
diff --git a/src/view/com/util/moderation/ContentHider.tsx b/src/view/com/util/moderation/ContentHider.tsx
index 6cf1cefd0..4f917844a 100644
--- a/src/view/com/util/moderation/ContentHider.tsx
+++ b/src/view/com/util/moderation/ContentHider.tsx
@@ -29,7 +29,7 @@ export function ContentHider({
 
   if (!moderation.blur || (ignoreMute && moderation.cause?.type === 'muted')) {
     return (
-      <View testID={testID} style={style}>
+      <View testID={testID} style={[styles.outer, style]}>
         {children}
       </View>
     )
@@ -37,7 +37,7 @@ export function ContentHider({
 
   const desc = describeModerationCause(moderation.cause, 'content')
   return (
-    <View testID={testID} style={style}>
+    <View testID={testID} style={[styles.outer, style]}>
       <Pressable
         onPress={() => {
           if (!moderation.noOverride) {
@@ -90,6 +90,9 @@ export function ContentHider({
 }
 
 const styles = StyleSheet.create({
+  outer: {
+    overflow: 'hidden',
+  },
   cover: {
     flexDirection: 'row',
     alignItems: 'center',