From 980dfdbdf325a6d306fd8fa020baa9492cad44f2 Mon Sep 17 00:00:00 2001 From: keplyx Date: Fri, 1 Nov 2019 06:55:37 +0100 Subject: [PATCH] Improved UI consistency --- screens/HomeScreen.js | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/screens/HomeScreen.js b/screens/HomeScreen.js index 258ef7b..a9ed8b7 100644 --- a/screens/HomeScreen.js +++ b/screens/HomeScreen.js @@ -24,6 +24,7 @@ const SECTIONS_ID = [ const REFRESH_TIME = 1000 * 20; // Refresh every 20 seconds +const CARD_BORDER_RADIUS = 10; /** * Opens a link in the device's browser @@ -333,7 +334,7 @@ export default class HomeScreen extends FetchedDataSectionList { marginLeft: 10, marginRight: 10, marginTop: 10, - borderRadius: 20, + borderRadius: CARD_BORDER_RADIUS, backgroundColor: ThemeManager.getCurrentThemeVariables().cardDefaultBg, overflow: 'hidden', }}> @@ -393,7 +394,7 @@ export default class HomeScreen extends FetchedDataSectionList { @@ -605,7 +606,7 @@ export default class HomeScreen extends FetchedDataSectionList { flex: 0, marginLeft: 10, marginRight: 10, - borderRadius: 20, + borderRadius: CARD_BORDER_RADIUS, backgroundColor: ThemeManager.getCurrentThemeVariables().cardDefaultBg, overflow: 'hidden', }}> @@ -660,9 +661,12 @@ export default class HomeScreen extends FetchedDataSectionList { - + @@ -671,11 +675,13 @@ export default class HomeScreen extends FetchedDataSectionList { - + {item.full_picture !== '' && item.full_picture !== undefined ? openWebLink(item.full_picture)} - style={{width: '100%', height: 250}}> + style={{width: '100%', height: 250, marginBottom: 5}}> - +