Skip to content
Snippets Groups Projects
Commit c6fd5e6d authored by Julia Friesel's avatar Julia Friesel
Browse files

Make sure info icon is always well pressable

parent cef2e850
No related branches found
No related tags found
No related merge requests found
...@@ -83,8 +83,11 @@ export default class SymptomView extends Component { ...@@ -83,8 +83,11 @@ export default class SymptomView extends Component {
}} }}
/> />
<View flex={1}> <View flex={1}>
{ this.renderContent() }
<TouchableOpacity <TouchableOpacity
onPress={() => this.setState({showInfo: true})} onPress={() => {
this.setState({showInfo: true})
}}
style={styles.infoButtonSymptomView} style={styles.infoButtonSymptomView}
> >
<FeatherIcon <FeatherIcon
...@@ -93,7 +96,6 @@ export default class SymptomView extends Component { ...@@ -93,7 +96,6 @@ export default class SymptomView extends Component {
style={iconStyles.symptomInfo} style={iconStyles.symptomInfo}
/> />
</TouchableOpacity> </TouchableOpacity>
{this.renderContent()}
{ this.state.showInfo && { this.state.showInfo &&
<InfoPopUp <InfoPopUp
symptom={this.symptomName} symptom={this.symptomName}
......
...@@ -457,9 +457,8 @@ export default StyleSheet.create({ ...@@ -457,9 +457,8 @@ export default StyleSheet.create({
}, },
infoButtonSymptomView: { infoButtonSymptomView: {
position: 'absolute', position: 'absolute',
paddingVertical: 10, padding: 15,
paddingHorizontal: 10, right: 0
right: -10
}, },
licensePage: { licensePage: {
paddingVertical: 20, paddingVertical: 20,
...@@ -493,7 +492,6 @@ export const iconStyles = { ...@@ -493,7 +492,6 @@ export const iconStyles = {
}, },
symptomInfo: { symptomInfo: {
color: secondaryColor, color: secondaryColor,
marginHorizontal: 20,
fontSize: 25 fontSize: 25
}, },
menuIcon: { menuIcon: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment