fix some border radius problems on fabric (#3118)
* fix some border radi * fix notifications image border radius * types
This commit is contained in:
@@ -164,7 +164,7 @@ let UserAvatar = ({
|
|||||||
<Image
|
<Image
|
||||||
accessibilityIgnoresInvertColors
|
accessibilityIgnoresInvertColors
|
||||||
testID="userAvatarImage"
|
testID="userAvatarImage"
|
||||||
style={aviStyle}
|
style={[aviStyle, {overflow: 'hidden'}]}
|
||||||
resizeMode="cover"
|
resizeMode="cover"
|
||||||
source={{uri: avatar}}
|
source={{uri: avatar}}
|
||||||
blurRadius={moderation?.blur ? BLUR_AMOUNT : 0}
|
blurRadius={moderation?.blur ? BLUR_AMOUNT : 0}
|
||||||
@@ -172,7 +172,7 @@ let UserAvatar = ({
|
|||||||
) : (
|
) : (
|
||||||
<HighPriorityImage
|
<HighPriorityImage
|
||||||
testID="userAvatarImage"
|
testID="userAvatarImage"
|
||||||
style={aviStyle}
|
style={[aviStyle, {overflow: 'hidden'}]}
|
||||||
contentFit="cover"
|
contentFit="cover"
|
||||||
source={{uri: avatar}}
|
source={{uri: avatar}}
|
||||||
blurRadius={moderation?.blur ? BLUR_AMOUNT : 0}
|
blurRadius={moderation?.blur ? BLUR_AMOUNT : 0}
|
||||||
|
|||||||
@@ -58,16 +58,19 @@ const styles = StyleSheet.create({
|
|||||||
width: 60,
|
width: 60,
|
||||||
height: 60,
|
height: 60,
|
||||||
borderRadius: 30,
|
borderRadius: 30,
|
||||||
|
overflow: 'hidden',
|
||||||
},
|
},
|
||||||
sizeLarge: {
|
sizeLarge: {
|
||||||
width: 70,
|
width: 70,
|
||||||
height: 70,
|
height: 70,
|
||||||
borderRadius: 35,
|
borderRadius: 35,
|
||||||
|
overflow: 'hidden',
|
||||||
},
|
},
|
||||||
outer: {
|
outer: {
|
||||||
// @ts-ignore web-only
|
// @ts-ignore web-only
|
||||||
position: isWeb ? 'fixed' : 'absolute',
|
position: isWeb ? 'fixed' : 'absolute',
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
|
overflow: 'hidden',
|
||||||
},
|
},
|
||||||
inner: {
|
inner: {
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
|||||||
@@ -33,5 +33,6 @@ const styles = StyleSheet.create({
|
|||||||
height: 100,
|
height: 100,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
marginRight: 5,
|
marginRight: 5,
|
||||||
|
overflow: 'hidden',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user