💅 disallow overflow outside of post content area(s) (#1395)
This commit is contained in:
parent
8a93321fb1
commit
c10cb8e972
2 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue