Skip to content

Commit

Permalink
add safe area padding bottom for hight resolution infor
Browse files Browse the repository at this point in the history
  • Loading branch information
mkzie2 committed Jan 3, 2025
1 parent 1cfcfa4 commit fa2f2a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Attachments/AttachmentView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import Text from '@components/Text';
import {usePlaybackContext} from '@components/VideoPlayerContexts/PlaybackContext';
import useLocalize from '@hooks/useLocalize';
import useNetwork from '@hooks/useNetwork';
import useStyledSafeAreaInsets from '@hooks/useStyledSafeAreaInsets';
import useStyleUtils from '@hooks/useStyleUtils';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
Expand Down Expand Up @@ -111,6 +112,7 @@ function AttachmentView({
const attachmentCarouselPagerContext = useContext(AttachmentCarouselPagerContext);

const theme = useTheme();
const {safeAreaPaddingBottomStyle} = useStyledSafeAreaInsets();
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const [loadComplete, setLoadComplete] = useState(false);
Expand Down Expand Up @@ -281,7 +283,7 @@ function AttachmentView({
}}
/>
</View>
{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}
<View style={safeAreaPaddingBottomStyle}>{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}</View>
</>
);
}
Expand Down

0 comments on commit fa2f2a4

Please sign in to comment.