Fix horizontal padding when opening a receipt while creating expenses with Multi-Scan#66889
Conversation
|
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Good catch @VickyStash, I can reproduce on android if I update the
|
|
Looks good |
|
@dubielzyk-expensify Can you please take a look? |
|
I wasn't able reproduce the issue from my iPhone, but I've noticed the difference in the containers on the Filmstrip vs Confirmation screen previews. The preview opened from the Confirmation screen doesn't have the bottom safe area padding, I've added a red background so it's more visible
To align filmstrip preview display with the confirmation one I've added |
|
@dubielzyk-expensify can you please trigger the new build? |
|
🚧 @cristipaval has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@dubielzyk-expensify Could you please check this one? |
|
@dubielzyk-expensify Does the preview from the Confirmation step has the same tiny left padding for you? I've checked you screenshot from confirmation page and I guess so, but just want to confirm! Also, could you please share what device do you use? |
Yep, I'm getting on the confirmation page too which wasn't the case a while back. It seemed inconcisitent, but now they seem to be operating the same.
iPhone 15 Pro. I'm using iOS 26 beta 4 at the moment, but I believe @shawnborton had the same issue not running the iOS beta. |
|
Yeah, I think we found inconsistent results across a variety of flows too for this. Are we fixing them everywhere? |
|
Overall, under the hood, the Examples:
Sometimes, if the image is already displayed at full height, but the image width isn't enough to fill the 100% of width, it can feel like there is a padding.
Do we want to change anything in this behaviour? @dubielzyk-expensify @shawnborton |
|
I think I'd expect it to stop before the home bar and not have the home bar sit on top of it. But I see examples of both in various apps so 🤷♂️ What do you think? |
|
I think I could go either way here, but I don't feel strongly so I am down to just leave it as-is. |
|
@dubielzyk-expensify The results above look good to me. Can you please trigger the new build and see if there're any problems? |
|
I can run the test build, but the screenshots above look to be expected. |
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
1 similar comment
It seems to be fixed with small scale buffer applied in the |
|
@VickyStash I don't think it's the best idea. Can you show me the example within detailed dimension? Should we use round up? |
|
Data I'm testing over: Device: iPhone 16 Logged data from As you can see: 393 / 2340 => 0.16794871794871793 while actually it's ~0.16794871794871795. This difference is caused by floating-point precision. And this minor difference results in super tiny padding, cause minScale is later used in totalScale calculations. App/src/components/MultiGestureCanvas/index.tsx Lines 104 to 107 in 1d9156f I'm not sure about rounding up, as I guess the results can be more unexpected that way. |
|
@VickyStash If we use buffer as 1.001, the minScale will change to |
|
@dukenv0307 I've tested the round up to 0.167949 and it doesn't work 😞... |
|
@VickyStash Thank you, it's quite tricky, I also can't find a better solution
Yeah, let's go with your solution for now. @dubielzyk-expensify Can you please rebuild ad hoc and test it? |
|
Will run a build 👍 |
|
🚧 @dubielzyk-expensify has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
YAY! It's fixed 😄 Thanks for working through the details with us 🙏 |
|
@dukenv0307 , could you do the checklist? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-31.at.23.46.55.movAndroid: mWeb ChromeScreen.Recording.2025-07-31.at.23.42.43.moviOS: HybridAppScreen.Recording.2025-07-31.at.23.47.15.moviOS: mWeb SafariScreen.Recording.2025-07-31.at.23.41.55.movMacOS: Chrome / SafariScreen.Recording.2025-07-31.at.23.40.17.movMacOS: DesktopScreen.Recording.2025-07-31.at.23.50.30.mov |
|
@cristipaval Sorry, I forgot the checklist 😅. I've just completed it, we're good to merge now 🚀 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 9.1.89-1 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.89-21 🚀
|














Explanation of Change
Fix horizontal padding when opening a receipt while creating expenses with Multi-Scan.
Fixed Issues
$ #65251
PROPOSAL: #65251 (comment)
Tests
Mobile/mWeb:
All platforms:
Offline tests
Same, as in the Tests section.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same, as in the Tests section.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop