Skip to content

Commit

Permalink
fix height on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Feb 2, 2024
1 parent 77626b7 commit 02f327e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/HeaderWithBackButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
import useThrottledButtonState from '@hooks/useThrottledButtonState';
import useWaitForNavigation from '@hooks/useWaitForNavigation';
import useWindowDimensions from '@hooks/useWindowDimensions';
import getButtonState from '@libs/getButtonState';
import Navigation from '@libs/Navigation/Navigation';
import variables from '@styles/variables';
Expand Down Expand Up @@ -66,6 +67,7 @@ function HeaderWithBackButton({
const [isDownloadButtonActive, temporarilyDisableDownloadButton] = useThrottledButtonState();
const {translate} = useLocalize();
const {isKeyboardShown} = useKeyboardState();
const {isSmallScreenWidth} = useWindowDimensions();
const waitForNavigate = useWaitForNavigation();

return (
Expand All @@ -75,7 +77,7 @@ function HeaderWithBackButton({
dataSet={{dragArea: false}}
style={[
styles.headerBar,
isCentralPaneSettings && styles.headerBarExtendedHeight,
isCentralPaneSettings && !isSmallScreenWidth && styles.headerBarExtendedHeight,
shouldShowBorderBottom && styles.borderBottom,
shouldShowBackButton ? styles.pl0 : styles.pl5,
shouldOverlay && StyleSheet.absoluteFillObject,
Expand Down

0 comments on commit 02f327e

Please sign in to comment.