From df17f1636dd59cd3be22083fd9eaf2423e8d10e6 Mon Sep 17 00:00:00 2001 From: feruz Date: Wed, 20 Jan 2021 16:19:36 +0200 Subject: [PATCH] space filter fix attempt --- src/components/filterBar/view/filterBarStyles.js | 1 + src/components/progressiveImage/index.js | 2 ++ src/utils/manaBar.js | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/filterBar/view/filterBarStyles.js b/src/components/filterBar/view/filterBarStyles.js index 1cdaf3e3f..14f869893 100644 --- a/src/components/filterBar/view/filterBarStyles.js +++ b/src/components/filterBar/view/filterBarStyles.js @@ -23,6 +23,7 @@ export default EStyleSheet.create({ flex: 6, }, filterBarWrapper: { + flex: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', diff --git a/src/components/progressiveImage/index.js b/src/components/progressiveImage/index.js index 734fc9afa..4d8c2c02e 100644 --- a/src/components/progressiveImage/index.js +++ b/src/components/progressiveImage/index.js @@ -8,9 +8,11 @@ const styles = StyleSheet.create({ right: 0, bottom: 0, top: 0, + borderRadius: 8, }, container: { backgroundColor: '#f6f6f6', + borderRadius: 8, }, }); diff --git a/src/utils/manaBar.js b/src/utils/manaBar.js index 8baf5e712..1f5d34ba3 100644 --- a/src/utils/manaBar.js +++ b/src/utils/manaBar.js @@ -6,13 +6,13 @@ const PERIOD = 432000; export const getVotingPower = (account) => { const { vp_manabar } = account; const { percentage } = vp_manabar; - return percentage / 100; + return percentage / 100 || 0; }; export const getRcPower = (account) => { const { rc_manabar } = account; const { percentage } = rc_manabar; - return percentage / 100; + return percentage / 100 || 0; }; export const getDownVotingPower = (account) => {