From d012373314f1af1b02e35994cce9f4450380b35e Mon Sep 17 00:00:00 2001 From: George Rusu Date: Tue, 13 Jul 2021 16:14:49 -0700 Subject: Remove floor --- src/screens/profile/CaptionScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 1232eb66..09a82e32 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -156,8 +156,8 @@ const CaptionScreen: React.FC = ({route, navigation}) => { const formattedTags = () => { return tags.map((tag) => ({ - x: Math.floor(tag.x), - y: Math.floor(tag.y), + x: tag.x, + y: tag.y, z: Math.floor(tag.z), user_id: tag.user.id, })); -- cgit v1.2.3-70-g09d2 From bc9001004b44f84aa3bd850e6bd3eccbe1ae4c27 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 15 Jul 2021 15:24:58 -0400 Subject: Fix tag position issue --- src/components/moments/MomentPost.tsx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index 07295369..e789a9bf 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -83,6 +83,7 @@ const MomentPost: React.FC = ({ moment.moment_url.endsWith('GIF') || moment.moment_url.endsWith('gif') ); + const mediaHeight = SCREEN_WIDTH / aspectRatio; /* * Load tags on initial render to pass tags data to moment header and content @@ -201,14 +202,7 @@ const MomentPost: React.FC = ({ {isVideo ? ( - +