Skip to content

Commit

Permalink
fix missing bottom margin when going offline
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Aug 24, 2024
1 parent 64cdaad commit aafd20d
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 @@ -578,7 +578,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 aafd20d

Please sign in to comment.