diff --git a/src/styles/styles.js b/src/styles/styles.js index d095b16fd49a..ce03535fc1fc 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -1691,14 +1691,17 @@ const styles = { backgroundColor: themeColors.modalBackground, }, PDFView: { - flex: 1, + // `display: grid` is not supported in native platforms! + // It's being used on Web/Desktop only to vertically center short PDFs, + // while preventing the overflow of the top of long PDF files. + display: 'grid', backgroundColor: themeColors.modalBackground, width: '100%', height: '100%', - flexDirection: 'row', justifyContent: 'center', overflow: 'hidden', overflowY: 'auto', + alignItems: 'center', }, modalCenterContentContainer: {