Skip to content

Commit

Permalink
Merge pull request #47954 from bernhardoj/fix/46404-missing-bottom-ma…
Browse files Browse the repository at this point in the history
…rgin-below-composer-in-rhp

Fix missing composer bottom margin in report RHP when going offline
  • Loading branch information
carlosmiceli authored Aug 28, 2024
2 parents 1bb1131 + aafd20d commit 5356ff8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<View | HTMLDivElement | null>(null);
const personalDetails = usePersonalDetails() || CONST.EMPTY_OBJECT;
Expand Down Expand Up @@ -581,7 +581,7 @@ function ReportActionCompose({
styles.flexRow,
styles.justifyContentBetween,
styles.alignItemsCenter,
(!shouldUseNarrowLayout || (shouldUseNarrowLayout && !isOffline)) && styles.chatItemComposeSecondaryRow,
(!isSmallScreenWidth || (isSmallScreenWidth && !isOffline)) && styles.chatItemComposeSecondaryRow,
]}
>
{!shouldUseNarrowLayout && <OfflineIndicator containerStyles={[styles.chatItemComposeSecondaryRow]} />}
Expand Down

0 comments on commit 5356ff8

Please sign in to comment.