From 5cc1f65406d4a96082ff0e6dd1e080f3c9025a98 Mon Sep 17 00:00:00 2001 From: nlok5923 Date: Tue, 9 Mar 2021 15:29:59 +0530 Subject: [PATCH] made event box width dynamic --- src/Components/Programs/Timeline.js | 2 +- src/Components/Programs/styles.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Programs/Timeline.js b/src/Components/Programs/Timeline.js index 680de566..47765694 100644 --- a/src/Components/Programs/Timeline.js +++ b/src/Components/Programs/Timeline.js @@ -58,7 +58,7 @@ function Timeline() { color:item.color, borderColor:item.color, flex:1, - left:50, + left:20, borderRadius: 50, zIndex:1, }} diff --git a/src/Components/Programs/styles.js b/src/Components/Programs/styles.js index 66f11f1f..80a5bbcb 100644 --- a/src/Components/Programs/styles.js +++ b/src/Components/Programs/styles.js @@ -9,7 +9,7 @@ export const Event = styled(Text,{ textAlign: 'center', position:'relative', backgroundColor:'#fff', - width:240 + width:'21.8%', }); export const Line = styled(View,{ borderBottomWidth:10,