From 8fba03a97aa30e10b0a667a49a30c5191146dd49 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Wed, 12 May 2021 14:57:02 -0400 Subject: fixed styling --- src/screens/badge/BadgeItem.tsx | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/screens/badge/BadgeItem.tsx b/src/screens/badge/BadgeItem.tsx index 1051d4a7..409cc429 100644 --- a/src/screens/badge/BadgeItem.tsx +++ b/src/screens/badge/BadgeItem.tsx @@ -44,7 +44,15 @@ const BadgeItem: React.FC = ({ - {title} + 30 + ? {fontSize: normalize(12), lineHeight: normalize(16)} + : {}, + ]}> + {title} + @@ -53,17 +61,19 @@ const BadgeItem: React.FC = ({ ); }; +const ITEM_WIDTH = SCREEN_WIDTH / 3 - 20; + const styles = StyleSheet.create({ border: { - width: SCREEN_WIDTH / 3 - 20 + 6, - height: 146, + width: ITEM_WIDTH + 6, + height: 156, marginLeft: 10, marginBottom: 12, borderRadius: 8, }, item: { - width: SCREEN_WIDTH / 3 - 20, - height: 140, + width: ITEM_WIDTH, + height: 150, borderRadius: 8, }, detailContainer: { -- cgit v1.2.3-70-g09d2