From 5c535495cb7b7d622b40023fba91100d50841dc5 Mon Sep 17 00:00:00 2001 From: ginsuma <13113013+ginsuma@users.noreply.github.com> Date: Fri, 21 Jul 2023 22:59:52 +0700 Subject: [PATCH 1/2] Fix shouldUseFullTitle --- src/pages/ReportDetailsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ReportDetailsPage.js b/src/pages/ReportDetailsPage.js index b8daf12c2ca7..372e388b2165 100644 --- a/src/pages/ReportDetailsPage.js +++ b/src/pages/ReportDetailsPage.js @@ -155,7 +155,7 @@ function ReportDetailsPage(props) { tooltipEnabled numberOfLines={1} textStyles={[styles.textHeadline, styles.textAlignCenter, styles.pre]} - shouldUseFullTitle={shouldUseFullTitle} + shouldUseFullTitle={!shouldUseFullTitle} /> {isPolicyAdmin ? ( From ee23ba8a9fb2e5d8b0a797ee6c0552a5a2ec3cd1 Mon Sep 17 00:00:00 2001 From: ginsuma <13113013+ginsuma@users.noreply.github.com> Date: Fri, 21 Jul 2023 23:13:19 +0700 Subject: [PATCH 2/2] Fix shouldUseFullTitle --- src/pages/ReportDetailsPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/ReportDetailsPage.js b/src/pages/ReportDetailsPage.js index 372e388b2165..af54965b25ec 100644 --- a/src/pages/ReportDetailsPage.js +++ b/src/pages/ReportDetailsPage.js @@ -61,7 +61,7 @@ function ReportDetailsPage(props) { const policy = useMemo(() => props.policies[`${ONYXKEYS.COLLECTION.POLICY}${props.report.policyID}`], [props.policies, props.report.policyID]); const isPolicyAdmin = useMemo(() => PolicyUtils.isPolicyAdmin(policy), [policy]); const shouldDisableSettings = useMemo(() => ReportUtils.shouldDisableSettings(props.report), [props.report]); - const shouldUseFullTitle = shouldDisableSettings; + const shouldUseFullTitle = !shouldDisableSettings; const isThread = useMemo(() => ReportUtils.isChatThread(props.report), [props.report]); const isUserCreatedPolicyRoom = useMemo(() => ReportUtils.isUserCreatedPolicyRoom(props.report), [props.report]); const isArchivedRoom = useMemo(() => ReportUtils.isArchivedRoom(props.report), [props.report]); @@ -155,7 +155,7 @@ function ReportDetailsPage(props) { tooltipEnabled numberOfLines={1} textStyles={[styles.textHeadline, styles.textAlignCenter, styles.pre]} - shouldUseFullTitle={!shouldUseFullTitle} + shouldUseFullTitle={shouldUseFullTitle} /> {isPolicyAdmin ? (