Skip to content

Commit 7727604

Browse files
authored
Merge pull request #54776 from mkzie2/mkzie2-issue/54061
add safe area padding bottom for hight resolution infor
2 parents 5339bb7 + fa2f2a4 commit 7727604

File tree

1 file changed

+3
-1
lines changed
  • src/components/Attachments/AttachmentView

1 file changed

+3
-1
lines changed

src/components/Attachments/AttachmentView/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Text from '@components/Text';
1414
import {usePlaybackContext} from '@components/VideoPlayerContexts/PlaybackContext';
1515
import useLocalize from '@hooks/useLocalize';
1616
import useNetwork from '@hooks/useNetwork';
17+
import useStyledSafeAreaInsets from '@hooks/useStyledSafeAreaInsets';
1718
import useStyleUtils from '@hooks/useStyleUtils';
1819
import useTheme from '@hooks/useTheme';
1920
import useThemeStyles from '@hooks/useThemeStyles';
@@ -111,6 +112,7 @@ function AttachmentView({
111112
const attachmentCarouselPagerContext = useContext(AttachmentCarouselPagerContext);
112113

113114
const theme = useTheme();
115+
const {safeAreaPaddingBottomStyle} = useStyledSafeAreaInsets();
114116
const styles = useThemeStyles();
115117
const StyleUtils = useStyleUtils();
116118
const [loadComplete, setLoadComplete] = useState(false);
@@ -281,7 +283,7 @@ function AttachmentView({
281283
}}
282284
/>
283285
</View>
284-
{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}
286+
<View style={safeAreaPaddingBottomStyle}>{isHighResolution && <HighResolutionInfo isUploaded={isUploaded} />}</View>
285287
</>
286288
);
287289
}

0 commit comments

Comments
 (0)