Skip to content

Commit

Permalink
Merge pull request #54776 from mkzie2/mkzie2-issue/54061
Browse files Browse the repository at this point in the history
add safe area padding bottom for hight resolution infor
  • Loading branch information
cristipaval authored Jan 7, 2025
2 parents 5339bb7 + fa2f2a4 commit 7727604
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 7727604

Please sign in to comment.