From 1ad0692d7a07ecb8b22175ef55a7922617e573d6 Mon Sep 17 00:00:00 2001 From: Georgia Monahan Date: Thu, 20 Jul 2023 08:47:21 +0100 Subject: [PATCH 1/2] Fix padding above time stamp in report view --- src/pages/home/report/ReportActionsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionsList.js b/src/pages/home/report/ReportActionsList.js index 85f0d406465d..08b27f1336ae 100644 --- a/src/pages/home/report/ReportActionsList.js +++ b/src/pages/home/report/ReportActionsList.js @@ -169,7 +169,7 @@ function ReportActionsList(props) { ref={reportScrollManager.ref} data={props.sortedReportActions} renderItem={renderItem} - contentContainerStyle={[styles.chatContentScrollView, shouldShowReportRecipientLocalTime]} + contentContainerStyle={[styles.chatContentScrollView, shouldShowReportRecipientLocalTime && styles.pt0]} keyExtractor={keyExtractor} initialRowHeight={32} initialNumToRender={calculateInitialNumToRender()} From b86fafe4cf22656ab902834add9b40fccc209a62 Mon Sep 17 00:00:00 2001 From: Georgia Monahan <38015950+grgia@users.noreply.github.com> Date: Mon, 24 Jul 2023 11:48:55 +0100 Subject: [PATCH 2/2] use ? : instead of && Co-authored-by: Situ Chandra Shil <108292595+situchan@users.noreply.github.com> --- src/pages/home/report/ReportActionsList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionsList.js b/src/pages/home/report/ReportActionsList.js index 08b27f1336ae..90a1cdb464fe 100644 --- a/src/pages/home/report/ReportActionsList.js +++ b/src/pages/home/report/ReportActionsList.js @@ -169,7 +169,7 @@ function ReportActionsList(props) { ref={reportScrollManager.ref} data={props.sortedReportActions} renderItem={renderItem} - contentContainerStyle={[styles.chatContentScrollView, shouldShowReportRecipientLocalTime && styles.pt0]} + contentContainerStyle={[styles.chatContentScrollView, shouldShowReportRecipientLocalTime ? styles.pt0 : {}]} keyExtractor={keyExtractor} initialRowHeight={32} initialNumToRender={calculateInitialNumToRender()}