mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
avoid keyboard in settings modals
This commit is contained in:
parent
8c1eb824e7
commit
e1351459fb
@ -37,7 +37,7 @@ export function useProfile() {
|
|||||||
updateState({ imageWidth: width, imageHeight: width, detailWidth: width + 2 });
|
updateState({ imageWidth: width, imageHeight: width, detailWidth: width + 2 });
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
updateState({ imageWidth: height, imageHeight, detailWidth: width + 2 });
|
updateState({ imageWidth: height, imageHeight: height, detailWidth: width + 2 });
|
||||||
}
|
}
|
||||||
}, [dimensions]);
|
}, [dimensions]);
|
||||||
|
|
||||||
|
@ -331,6 +331,7 @@ export function Settings() {
|
|||||||
supportedOrientations={['portrait', 'landscape']}
|
supportedOrientations={['portrait', 'landscape']}
|
||||||
onRequestClose={actions.hideEditSeal}
|
onRequestClose={actions.hideEditSeal}
|
||||||
>
|
>
|
||||||
|
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'}>
|
||||||
<BlurView style={styles.modalOverlay} blurType={Colors.overlay} blurAmount={2} reducedTransparencyFallbackColor="black">
|
<BlurView style={styles.modalOverlay} blurType={Colors.overlay} blurAmount={2} reducedTransparencyFallbackColor="black">
|
||||||
<View style={styles.modalContainer}>
|
<View style={styles.modalContainer}>
|
||||||
<View style={styles.modalClose}>
|
<View style={styles.modalClose}>
|
||||||
@ -497,6 +498,7 @@ export function Settings() {
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
</KeyboardAvoidingView>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<Modal
|
<Modal
|
||||||
@ -506,6 +508,7 @@ export function Settings() {
|
|||||||
supportedOrientations={['portrait', 'landscape']}
|
supportedOrientations={['portrait', 'landscape']}
|
||||||
onRequestClose={actions.hideLogin}
|
onRequestClose={actions.hideLogin}
|
||||||
>
|
>
|
||||||
|
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'}>
|
||||||
<BlurView style={styles.modalOverlay} blurType={Colors.overlay} blurAmount={2} reducedTransparencyFallbackColor="black">
|
<BlurView style={styles.modalOverlay} blurType={Colors.overlay} blurAmount={2} reducedTransparencyFallbackColor="black">
|
||||||
<View style={styles.modalContainer}>
|
<View style={styles.modalContainer}>
|
||||||
<View style={styles.modalClose}>
|
<View style={styles.modalClose}>
|
||||||
@ -559,6 +562,7 @@ export function Settings() {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</BlurView>
|
</BlurView>
|
||||||
|
</KeyboardAvoidingView>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<Modal
|
<Modal
|
||||||
|
@ -269,7 +269,7 @@ export const styles = StyleSheet.create({
|
|||||||
fontFamily: 'Roboto',
|
fontFamily: 'Roboto',
|
||||||
},
|
},
|
||||||
promptButton: {
|
promptButton: {
|
||||||
marginTop: 8,
|
marginTop: 24,
|
||||||
marginBottom: 16,
|
marginBottom: 16,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
backgroundColor: Colors.primaryButton,
|
backgroundColor: Colors.primaryButton,
|
||||||
|
1
todo
1
todo
@ -1,4 +1,5 @@
|
|||||||
login after delete fails
|
login after delete fails
|
||||||
|
rotate screen mangles profile
|
||||||
registry showing stale handle for unknown contact
|
registry showing stale handle for unknown contact
|
||||||
show disabled notifications if node disabled
|
show disabled notifications if node disabled
|
||||||
warn if federated hostname fails
|
warn if federated hostname fails
|
||||||
|
Loading…
Reference in New Issue
Block a user