From 0cfc85933c57b171d9b6bff971044b033903d90e Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Sat, 25 May 2019 09:17:39 +0200 Subject: [PATCH] Make info modal only as big as it needs to be --- styles/index.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/styles/index.js b/styles/index.js index df5948b..e932564 100644 --- a/styles/index.js +++ b/styles/index.js @@ -295,24 +295,22 @@ export default StyleSheet.create({ }, infoPopUpWrapper: { position: 'absolute', - top: 0, - bottom: 0, - left: 0, - right: 0 + width: '100%', + height: '100%' }, infoPopUp: { backgroundColor: 'white', padding: 15, - position: 'absolute', - top: 20, - bottom: 20, - left: 20, - right: 20 + marginHorizontal: 20, + marginTop: 20, + maxHeight: '92%' }, dimmed: { + position: 'absolute', backgroundColor: 'black', opacity: 0.5, - flex: 1 + width: '100%', + height: '100%' }, infoSymptomClose: { alignItems: 'flex-end'