💅 disallow overflow outside of post content area(s) (#1395)

zio/stable
Micah Maligie 2023-09-07 18:13:28 -07:00 committed by GitHub
parent 8a93321fb1
commit c10cb8e972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -349,6 +349,7 @@ const styles = StyleSheet.create({
paddingLeft: 10,
paddingRight: 15,
cursor: 'pointer',
overflow: 'hidden',
},
outerSmallTop: {
borderTopWidth: 0,

View File

@ -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',