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

This commit is contained in:
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, paddingLeft: 10,
paddingRight: 15, paddingRight: 15,
cursor: 'pointer', cursor: 'pointer',
overflow: 'hidden',
}, },
outerSmallTop: { outerSmallTop: {
borderTopWidth: 0, borderTopWidth: 0,

View file

@ -29,7 +29,7 @@ export function ContentHider({
if (!moderation.blur || (ignoreMute && moderation.cause?.type === 'muted')) { if (!moderation.blur || (ignoreMute && moderation.cause?.type === 'muted')) {
return ( return (
<View testID={testID} style={style}> <View testID={testID} style={[styles.outer, style]}>
{children} {children}
</View> </View>
) )
@ -37,7 +37,7 @@ export function ContentHider({
const desc = describeModerationCause(moderation.cause, 'content') const desc = describeModerationCause(moderation.cause, 'content')
return ( return (
<View testID={testID} style={style}> <View testID={testID} style={[styles.outer, style]}>
<Pressable <Pressable
onPress={() => { onPress={() => {
if (!moderation.noOverride) { if (!moderation.noOverride) {
@ -90,6 +90,9 @@ export function ContentHider({
} }
const styles = StyleSheet.create({ const styles = StyleSheet.create({
outer: {
overflow: 'hidden',
},
cover: { cover: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',