diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-01-04 16:39:56 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2018-01-09 14:40:20 +0100 |
| commit | 44ffa3f8cfdc9a8bd5150f0f2e0707eff11f330c (patch) | |
| tree | c7d0f070656502b694aa8346544e375aa59e8ea0 /app/components/SettingsStyles.js | |
| parent | 177efaf5829f2da43462e2817d1f0876f6a5064a (diff) | |
| download | mullvadvpn-44ffa3f8cfdc9a8bd5150f0f2e0707eff11f330c.tar.xz mullvadvpn-44ffa3f8cfdc9a8bd5150f0f2e0707eff11f330c.zip | |
Fix layout issues
Diffstat (limited to 'app/components/SettingsStyles.js')
| -rw-r--r-- | app/components/SettingsStyles.js | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/app/components/SettingsStyles.js b/app/components/SettingsStyles.js index 1013c1b6c8..0b39235d7b 100644 --- a/app/components/SettingsStyles.js +++ b/app/components/SettingsStyles.js @@ -10,25 +10,34 @@ export default Object.assign(createViewStyles({ height: '100%' }, settings__header:{ - flex: 0, - paddingTop: 12, - paddingBottom: 12, - paddingLeft: 24, + flexGrow: 0, + flexShrink: 0, + flexBasis: 'auto', + paddingTop: 40, paddingRight: 24, - position: 'relative' /* anchor for close button */ + paddingLeft: 24, + paddingBottom: 24, }, - settings__content:{ + settings__content: { flexDirection: 'column', flex: 1, justifyContent: 'space-between', height: '100%', }, - settings__close:{ - flexDirection: 'row', - alignItems: 'center', - justifyContent: 'flex-start', - marginTop: 0, - marginLeft: 12, + settings__scrollview: { + flexGrow: 1, + flexShrink: 1, + flexBasis: '100%', + }, + settings__close: { + position: 'absolute', + top: 0, + left: 12, + borderWidth: 0, + padding: 0, + margin: 0, + zIndex: 1, /* part of .settings__close covers the button */ + cursor: 'default', }, settings__close_icon:{ width: 24, @@ -81,16 +90,12 @@ export default Object.assign(createViewStyles({ borderRadius: 4, justifyContent: 'center', alignItems: 'center', - width: '100%', }, - settings__footer:{ - width: '100%', - justifyContent: 'center', - alignItems: 'center', + settings__footer: { paddingTop: 24, paddingLeft: 24, paddingRight: 24, - paddingBottom: 24 * 2, // Not entirely sure why I need to double the padding here :/ + paddingBottom: 24, }, }), createTextStyles({ settings__title:{ |
