diff options
author | Micah Maligie <jmaligie@gmail.com> | 2023-09-07 18:13:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 18:13:28 -0700 |
commit | c10cb8e97276f644601e6939f5319bb00ffcbdbf (patch) | |
tree | 996ccae19c5ab2dcc47d245efa18f2f3f5ce0239 /src/view/com/util/moderation/ContentHider.tsx | |
parent | 8a93321fb1bd4991cbb3bd1c1f09ed2196182f93 (diff) | |
download | voidsky-c10cb8e97276f644601e6939f5319bb00ffcbdbf.tar.zst |
💅 disallow overflow outside of post content area(s) (#1395)
Diffstat (limited to 'src/view/com/util/moderation/ContentHider.tsx')
-rw-r--r-- | src/view/com/util/moderation/ContentHider.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
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', |