From aafd20d02c82f242589d14efe0a7ee6994d0f281 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 24 Aug 2024 12:21:04 +0800 Subject: [PATCH] fix missing bottom margin when going offline --- .../home/report/ReportActionCompose/ReportActionCompose.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx b/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx index da7b4f72bfb6..37bcba5b67bb 100644 --- a/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx +++ b/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx @@ -141,7 +141,7 @@ function ReportActionCompose({ const theme = useTheme(); const styles = useThemeStyles(); const {translate} = useLocalize(); - const {isMediumScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout(); + const {isSmallScreenWidth, isMediumScreenWidth, shouldUseNarrowLayout} = useResponsiveLayout(); const {isOffline} = useNetwork(); const actionButtonRef = useRef(null); const personalDetails = usePersonalDetails() || CONST.EMPTY_OBJECT; @@ -578,7 +578,7 @@ function ReportActionCompose({ styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter, - (!shouldUseNarrowLayout || (shouldUseNarrowLayout && !isOffline)) && styles.chatItemComposeSecondaryRow, + (!isSmallScreenWidth || (isSmallScreenWidth && !isOffline)) && styles.chatItemComposeSecondaryRow, ]} > {!shouldUseNarrowLayout && }