Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ function MultiScanEducationalModal() {
title={translate('iou.scanMultipleReceipts')}
image={lazyIllustrations.MultiScan}
shouldRenderSVG
imageHeight="auto"
imageWidth="auto"
imageHeight={220}
modalInnerContainerStyle={styles.pt0}
illustrationOuterContainerStyle={styles.multiScanEducationalPopupImage}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Set the modal illustration aspect ratio

When the SVG now falls back to ImageSVG's 100% width/height, FeatureTrainingModal still wraps it in a 4:3 inner viewport because illustrationAspectRatio is omitted (the default is the video ratio, 1280/960). This modal’s outer container uses styles.multiScanEducationalPopupImage with aspectRatio: 1.7, matching the multi-scan SVG viewBox (375/220), so the 4:3 inner view becomes taller than the clipped outer view and the centered SVG is cropped at the bottom on the same Android/iOS path this fixes. Pass the SVG’s aspect ratio here so the image renders at the intended size instead of being partially hidden.

Useful? React with 👍 / 👎.

@mkhutornyi mkhutornyi Jun 1, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughs?

Original code was: imageHeight={220}

@rinej rinej Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, added the original approach

onConfirm={dismissEducationalPopup}
Expand Down
Loading