Skip to content

Commit

Permalink
fix: jitter due to translucent status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Oct 16, 2024
1 parent 8f035f6 commit 3be2aa3
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions app/components/ChatMenu/ChatWindow/AvatarViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const AvatarViewer = () => {
<Modal
style={styles.modal}
transparent
statusBarTranslucent
animationType="fade"
visible={show}
onRequestClose={() => setShow(false)}>
<FadeBackrop handleOverlayClick={() => setShow(false)} />
Expand All @@ -67,18 +67,26 @@ const AvatarViewer = () => {
router.push(isUser ? '/components/UserEditor' : '/CharInfo')
setShow(false)
}}>
<AntDesign
name="edit"
size={18}
color={Style.getColor('primary-text2')}
/>
<Text style={styles.buttonText}>
<AntDesign name="edit" /> Edit {isUser ? 'User' : 'Character'}
Edit {isUser ? 'User' : 'Character'}
</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.button}
onPress={() => {
setShow(false)
}}>
<Text style={styles.buttonText}>
<AntDesign name="close" /> Close
</Text>
<AntDesign
name="close"
size={18}
color={Style.getColor('primary-text2')}
/>
<Text style={styles.buttonText}>Close</Text>
</TouchableOpacity>
</View>
</Animated.View>
Expand Down Expand Up @@ -134,8 +142,11 @@ const styles = StyleSheet.create({
},

button: {
flexDirection: 'row',
alignItems: 'center',
columnGap: 4,
paddingVertical: 8,
paddingHorizontal: 16,
paddingHorizontal: 12,
borderRadius: 8,
borderWidth: 1,
borderColor: Style.getColor('primary-brand'),
Expand Down

0 comments on commit 3be2aa3

Please sign in to comment.