You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-06-12] [Due for payment 2025-06-11] [$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices #62533
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: Reproducible in staging?: Reproducible in production?: If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@shawnborton Slack conversation (hyperlinked to channel name): #Expensify Bugs
Action Performed:
Open a receipt preview on a wider mobile device (e.g. certain Android phones)
Observe that the preview does not take up the full width of the screen.
Expected Result:
The receipt preview should span the full width of the viewport on wider mobile devices. Additionally, we should consider enforcing a 16:9 aspect ratio, similar to how we handle expense previews, to ensure visual consistency.
Actual Result:
The receipt preview appears narrower than the full width of the screen on wider mobile devices, reducing visual clarity
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Android: App
Android: mWeb Chrome
iOS: App
iOS: mWeb Safari
iOS: mWeb Chrome
Windows: Chrome
MacOS: Chrome / Safari
MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:
What changes do you think we should make in order to solve the problem?
We can increase the maxWidth.
If we increase the width, we would also need to increase the height. We can add the expenseViewImage so that it doesn't affect other receipt images.
If needed, we can use isSmallScreenWidth to increase the width conditionally. This way, we can keep the maxWidth at 360 on medium and large screen width devices.
According to this blog, the maximum width of a smartphone can be up to 428.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
On small screen width devices, we can set the width to 100%.
We don't apply the max width in the IOU confirmation flow page, so it can stretch like this because no aspect ratio is set and a fixed height is set (from #58898).
What changes do you think we should make in order to solve the problem?
If we want it to take full width on small screen, then we can create a new style for the small screen and remove the maxWidth style and use aspectRatio: 16/9 instead.
This way, both large and small screens will have a 16:9 ratio, with the large screen having a max width of 360. For the receipt empty state, we can add a new prop to use the style because we want to use it in MoneyRequestConfirmationListFooter (IOU confirm page) too, not only in MoneyRequestView.
changed the title [-]Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/-][+][$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/+]on May 22, 2025
changed the title [-][Due for payment 2025-06-11] [$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/-][+][Due for payment 2025-06-12] [Due for payment 2025-06-11] [$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/+]on Jun 5, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.59-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@DylanDylann@NicMendonca@DylanDylann The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: No. this seems like a new design update
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Press FAB > Create request (Manual) and proceed to the confirm step
Verify the receipt preview takes full width
Create the request and open the transaction thread
On small screen, verify the receipt preview takes full width
Create another manual request, but this time, add a receipt at the confirm page
Verify the receipt preview takes full width
Open the transaction thread
On small screen, verify the receipt preview takes full width
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon May 21, 2025
Triggered auto assignment to @NicMendonca (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.Krishna2323 commentedon May 22, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Receipt Preview Does Not Span Full Width on Wider Mobile Devices
What is the root cause of that problem?
maxWidthis set to360for receipts in money request view.App/src/styles/index.ts
Lines 4869 to 4871 in 6871ba9
What changes do you think we should make in order to solve the problem?
maxWidth.expenseViewImageso that it doesn't affect other receipt images.isSmallScreenWidthto increase the width conditionally. This way, we can keep themaxWidthat 360 on medium and large screen width devices.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
What alternative solutions did you explore? (Optional)
100%.Result
bernhardoj commentedon May 22, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-05-22 03:04:10 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Receipt doesn't take the full width in small screen.
What is the root cause of that problem?
We apply a max width style to the receipt component (placeholder and receipt).
App/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 577 to 578 in 6871ba9
App/src/components/ReceiptEmptyState.tsx
Line 52 in 6871ba9
App/src/styles/index.ts
Lines 4869 to 4871 in 6871ba9
We don't apply the max width in the IOU confirmation flow page, so it can stretch like this because no aspect ratio is set and a fixed height is set (from #58898).
App/src/components/MoneyRequestConfirmationListFooter.tsx
Lines 752 to 754 in 6871ba9
What changes do you think we should make in order to solve the problem?
If we want it to take full width on small screen, then we can create a new style for the small screen and remove the
maxWidthstyle and useaspectRatio: 16/9instead.Then, we apply
expenseViewImageSmallfor small screen (isSmallScreenWidth).App/src/components/ReportActionItem/MoneyRequestView.tsx
Lines 577 to 578 in 6871ba9
For MoneyRequestConfirmationListFooter, we can always use
expenseViewImageSmall.App/src/components/MoneyRequestConfirmationListFooter.tsx
Lines 754 to 755 in 6871ba9
However, the height won't be resized automatically because we set a fixed height, that's why we set it to
autoto unset it.App/src/styles/index.ts
Line 4865 in 6871ba9
This way, both large and small screens will have a 16:9 ratio, with the large screen having a max width of 360. For the receipt empty state, we can add a new prop to use the style because we want to use it in
MoneyRequestConfirmationListFooter(IOU confirm page) too, not only inMoneyRequestView.App/src/components/ReceiptEmptyState.tsx
Line 52 in 6871ba9
Then, pass
shouldUseAspectRatiofor bothReceiptEmptyStateinMoneyRequestViewandMoneyRequestConfirmationListFooter.Since small screen breakpoint is 800, it can appears very large. If needed, we can still keep the max width for small screen, but increase the value.

Or we can apply this to native platforms only.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
DylanDylann commentedon May 22, 2025
@NicMendonca Could you please assign me as C+ reviewer on this issue? Because this is a follow-up from my previous PR
cc @shawnborton
[-]Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/-][+][$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/+]melvin-bot commentedon May 22, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021925616857476464526
melvin-bot commentedon May 22, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk (
External)29 remaining items
[-][Due for payment 2025-06-11] [$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/-][+][Due for payment 2025-06-12] [Due for payment 2025-06-11] [$250] Receipt Preview Does Not Span Full Width on Wider Mobile Devices[/+]melvin-bot commentedon Jun 5, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.59-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-06-12. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 5, 2025
@DylanDylann @NicMendonca @DylanDylann The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
NicMendonca commentedon Jun 10, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
DylanDylann commentedon Jun 11, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: No. this seems like a new design update
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Test:
Do we agree 👍 or 👎
NicMendonca commentedon Jun 11, 2025
Payment Summary
Contributor: @bernhardoj - $250 paid via NewDot
Contributor+" @DylanDylann - $250 paid via NewDot
bernhardoj commentedon Jun 12, 2025
Requested in ND.
JmillsExpensify commentedon Jun 12, 2025
$250 approved for @bernhardoj
JmillsExpensify commentedon Aug 12, 2025
$250 approved for @DylanDylann
quinthar commentedon Aug 13, 2025
$250 approved for @DylanDylann