Skip to content

Commit 5ecf62a

Browse files
committed
Center PDF thumbnail content to fix offline error placeholder alignment
1 parent 434d660 commit 5ecf62a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/pages/workspace/WorkspaceOverviewPage.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,14 @@ function WorkspaceOverviewPage({policyDraft, policy: policyProp, route}: Workspa
850850
role={CONST.ROLE.BUTTON}
851851
accessibilityLabel={translate('workspace.rules.customRules.policyDocument')}
852852
sentryLabel={CONST.SENTRY_LABEL.WORKSPACE.OVERVIEW.RULES_DOCUMENT}
853-
style={[styles.border, styles.borderRadiusComponentLarge, styles.overflowHidden, styles.flex1]}
853+
style={[
854+
styles.border,
855+
styles.borderRadiusComponentLarge,
856+
styles.overflowHidden,
857+
styles.flex1,
858+
styles.alignItemsCenter,
859+
styles.justifyContentCenter,
860+
]}
854861
>
855862
<PDFThumbnail
856863
previewSourceURL={rulesDocumentSourceURL}

0 commit comments

Comments
 (0)