Fix: temperature screen
This commit is contained in:
committed by
Sofiya Tepikin
parent
2fb82d95e6
commit
e289094d97
@@ -112,13 +112,14 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<AppModal onClose={onSave}>
|
<AppModal onClose={onSave}>
|
||||||
<ScrollView
|
<View style={styles.modalWindow}>
|
||||||
contentContainerStyle={styles.modalContainer}
|
|
||||||
style={styles.modalWindow}
|
|
||||||
>
|
|
||||||
<View style={styles.headerContainer}>
|
<View style={styles.headerContainer}>
|
||||||
<CloseIcon onClose={onSave} />
|
<CloseIcon onClose={onSave} />
|
||||||
</View>
|
</View>
|
||||||
|
<ScrollView
|
||||||
|
contentContainerStyle={styles.modalContainer}
|
||||||
|
keyboardDismissMode="on-drag"
|
||||||
|
>
|
||||||
{symptom === 'temperature' && (
|
{symptom === 'temperature' && (
|
||||||
<Temperature
|
<Temperature
|
||||||
date={date}
|
date={date}
|
||||||
@@ -204,6 +205,7 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
|
|||||||
</Segment>
|
</Segment>
|
||||||
)}
|
)}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
</View>
|
||||||
</AppModal>
|
</AppModal>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -218,21 +220,28 @@ SymptomEditView.propTypes = {
|
|||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
buttonsContainer: {
|
buttonsContainer: {
|
||||||
...Containers.rowContainer,
|
...Containers.rowContainer,
|
||||||
|
paddingHorizontal: Spacing.base,
|
||||||
|
paddingBottom: Spacing.base,
|
||||||
},
|
},
|
||||||
headerContainer: {
|
headerContainer: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'flex-end',
|
justifyContent: 'flex-end',
|
||||||
paddingVertical: Spacing.tiny,
|
paddingTop: Spacing.base,
|
||||||
|
paddingHorizontal: Spacing.base,
|
||||||
|
position: 'absolute',
|
||||||
|
width: '100%',
|
||||||
|
zIndex: 3, // works on ios
|
||||||
|
elevation: 3, // works on android
|
||||||
},
|
},
|
||||||
modalContainer: {
|
modalContainer: {
|
||||||
flex: 1,
|
paddingHorizontal: Spacing.base,
|
||||||
padding: Spacing.base,
|
|
||||||
},
|
},
|
||||||
modalWindow: {
|
modalWindow: {
|
||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
marginVertical: Sizes.huge * 2,
|
marginTop: Sizes.huge * 2,
|
||||||
|
paddingTop: Spacing.large * 2,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
minHeight: '40%',
|
minHeight: '40%',
|
||||||
maxHeight: Dimensions.get('window').height * 0.7,
|
maxHeight: Dimensions.get('window').height * 0.7,
|
||||||
|
|||||||
Reference in New Issue
Block a user