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
[$250] Extra padding/margin to the right of "More" button when viewing expense on web/desktop #85407
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 9.3.38-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from BrowserStack: 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:
Navigate to any Reports > expense on web/desktop
Locate the "More" button (typically in the expense header or action bar)
Observe the spacing to the right of the "More" button.
Expected Result:
The "More" button should have proper, consistent spacing with no excess padding or margin on the right side, aligning cleanly with surrounding elements.
Actual Result:
Extra padding and/or margin appears to the right of the "More" button
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Please re-state the problem that we are trying to solve in this issue.
When viewing an expense report on web/desktop, there is extra padding/margin to the right of the "More" button in the header. This creates a noticeable gap between the "More" button and the adjacent Search/Help icons.
What is the root cause of that problem?
In HeaderWithBackButton/index.tsx, the View wrapping children at line 273 always applies styles.pr2 (paddingRight: 8px):
This pr2 padding was designed to create spacing between the action buttons (children, download, rotate, pin) and the ThreeDotMenuButton/CloseButton that sit immediately after this View. However, both MoneyRequestHeader (line 649) and MoneyReportHeader (line 2314) do not pass shouldShowThreeDotsButton to HeaderWithBackButton (it defaults to false), and neither passes shouldShowCloseButton. As a result, ThreeDotMenuButton resolves to null (line 163-195), and the pr2 paddingRight creates an unnecessary 8px gap to the right of the "More" button with nothing to separate it from.
The layout on desktop becomes: [Avatar/Title] [8px marginLeft] [children ("More" btn)] [8px paddingRight ← unnecessary] [SearchButton] [SidePanelButton] [12px marginRight]
What changes do you think we should make in order to fix the problem?
Make the pr2 padding conditional based on whether ThreeDotMenuButton or CloseButton is actually rendered. In HeaderWithBackButton/index.tsx at line 273, change:
This removes the 8px right padding when there is no ThreeDotsMenu or CloseButton to separate from, while preserving it for cases that need the spacing (e.g., attachment previews with download/rotate buttons followed by a ThreeDotsMenu).
What alternative solutions did you explore? (Optional)
Removing pr2 entirely — This would break spacing for views that actually use ThreeDotsMenu alongside children (like workspace settings pages).
Adding negative margin on MoneyRequestHeader/MoneyReportHeader children — This is a workaround that doesn't address the root cause and creates maintenance burden.
Using gap on the reportOptions View instead of pr2 — This would require restructuring the flex container and could have wider impact across all HeaderWithBackButton consumers.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
changed the title [-]Extra padding/margin to the right of "More" button when viewing expense on web/desktop[/-][+][$250] Extra padding/margin to the right of "More" button when viewing expense on web/desktop[/+]on Mar 16, 2026
I traced the git history of the relevant files and identified two PRs that together created this issue:
Primary Regression: PR #58474 — "Help button spacing and alignment"
Merged: March 19, 2025 by francoisl
Author: 289Adam289
This PR restructured the layout of HeaderWithBackButton/index.tsx. Specifically, commit 1fed0203f4 (March 18, 2025) split the reportOptions container into two nested Views:
The inner pr2 View (paddingRight: 8px) was introduced to separate children/download/pin buttons from the ThreeDotsMenu and CloseButton. However, this padding applies unconditionally, even when ThreeDotsMenu and CloseButton don't render.
Contributing Change: PR #58084 — "Simplified actions on report header"
Merged: April 8, 2025
Author: jnowakow
This PR introduced the "More" ButtonWithDropdownMenu as children of HeaderWithBackButton in both MoneyReportHeader and MoneyRequestHeader. This made the pr2 gap significantly more visible, since now there's a prominent button sitting inside the pr2 container with 8px of unexplained right padding.
Earlier Context: PR #44025 — "[Details Revamp] Remove the Three Dot Menu on Affected Reports"
Merged: July 5, 2024
Author: cdOut
This earlier PR removed shouldShowThreeDotsButton from both MoneyReportHeader and MoneyRequestHeader, which means the ThreeDotsMenu in HeaderWithBackButton renders as null for these headers. This is why the pr2 padding serves no purpose — there's nothing after the inner View to separate from.
Added "More" button as children, making the gap visually prominent
PR #58474 is the primary regression since it introduced the structural change that created the unconditional padding. PR #58084 made it clearly visible by adding the "More" button as a child element.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
shawnborton commentedon Mar 16, 2026
@MelvinBot can you try to track down where the regression was introduced that caused this to happen?
MelvinBot commentedon Mar 16, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When viewing an expense report on web/desktop, there is extra padding/margin to the right of the "More" button in the header. This creates a noticeable gap between the "More" button and the adjacent Search/Help icons.
What is the root cause of that problem?
In
HeaderWithBackButton/index.tsx, the View wrappingchildrenat line 273 always appliesstyles.pr2(paddingRight: 8px):This
pr2padding was designed to create spacing between the action buttons (children, download, rotate, pin) and theThreeDotMenuButton/CloseButtonthat sit immediately after this View. However, bothMoneyRequestHeader(line 649) andMoneyReportHeader(line 2314) do not passshouldShowThreeDotsButtontoHeaderWithBackButton(it defaults tofalse), and neither passesshouldShowCloseButton. As a result,ThreeDotMenuButtonresolves tonull(line 163-195), and thepr2paddingRight creates an unnecessary 8px gap to the right of the "More" button with nothing to separate it from.The layout on desktop becomes:
[Avatar/Title] [8px marginLeft] [children ("More" btn)] [8px paddingRight ← unnecessary] [SearchButton] [SidePanelButton] [12px marginRight]What changes do you think we should make in order to fix the problem?
Make the
pr2padding conditional based on whetherThreeDotMenuButtonorCloseButtonis actually rendered. InHeaderWithBackButton/index.tsxat line 273, change:to:
This removes the 8px right padding when there is no ThreeDotsMenu or CloseButton to separate from, while preserving it for cases that need the spacing (e.g., attachment previews with download/rotate buttons followed by a ThreeDotsMenu).
What alternative solutions did you explore? (Optional)
pr2entirely — This would break spacing for views that actually use ThreeDotsMenu alongside children (like workspace settings pages).gapon thereportOptionsView instead ofpr2— This would require restructuring the flex container and could have wider impact across all HeaderWithBackButton consumers.Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
melvin-bot commentedon Mar 16, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh (
External)[-]Extra padding/margin to the right of "More" button when viewing expense on web/desktop[/-][+][$250] Extra padding/margin to the right of "More" button when viewing expense on web/desktop[/+]melvin-bot commentedon Mar 16, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022033532889081182108
MelvinBot commentedon Mar 16, 2026
Regression Tracking
I traced the git history of the relevant files and identified two PRs that together created this issue:
Primary Regression: PR #58474 — "Help button spacing and alignment"
francoisl289Adam289This PR restructured the layout of
HeaderWithBackButton/index.tsx. Specifically, commit1fed0203f4(March 18, 2025) split thereportOptionscontainer into two nested Views:Before PR #58474:
After PR #58474:
The inner
pr2View (paddingRight: 8px) was introduced to separate children/download/pin buttons from the ThreeDotsMenu and CloseButton. However, this padding applies unconditionally, even when ThreeDotsMenu and CloseButton don't render.Contributing Change: PR #58084 — "Simplified actions on report header"
jnowakowThis PR introduced the "More"
ButtonWithDropdownMenuas children ofHeaderWithBackButtonin bothMoneyReportHeaderandMoneyRequestHeader. This made thepr2gap significantly more visible, since now there's a prominent button sitting inside thepr2container with 8px of unexplained right padding.Earlier Context: PR #44025 — "[Details Revamp] Remove the Three Dot Menu on Affected Reports"
cdOutThis earlier PR removed
shouldShowThreeDotsButtonfrom bothMoneyReportHeaderandMoneyRequestHeader, which means the ThreeDotsMenu inHeaderWithBackButtonrenders asnullfor these headers. This is why thepr2padding serves no purpose — there's nothing after the inner View to separate from.Timeline
shouldShowThreeDotsButtonfrom MoneyReportHeader/MoneyRequestHeader<View style={[styles.pr2]}>wrapping children — the regression pointPR #58474 is the primary regression since it introduced the structural change that created the unconditional padding. PR #58084 made it clearly visible by adding the "More" button as a child element.
shawnborton commentedon Mar 16, 2026
@MelvinBot implement this please
MelvinBot commentedon Mar 16, 2026
🤖 Draft PR created: #85418
Please mark it as "Ready for review" when it is ready for review.
4 remaining items
hoangzinh commentedon Mar 17, 2026
sure, @shawnborton
shawnborton commentedon Mar 18, 2026
We decided to close the PR since the bug doesn't seem to appear on staging anymore. Let's still pay out @hoangzinh for their time.
shawnborton commentedon Mar 18, 2026
Why isn't an internal team member getting assigned here?
hoangzinh commentedon Mar 18, 2026
The process has changed https://expensify.slack.com/archives/C02NK2DQWUX/p1773415153181499. I guess we need to add "Awaiting payment" label or tag @mallenexpensify directly (sorry for tagging).
shawnborton commentedon Mar 18, 2026
Awesome, thanks!
melvin-bot commentedon Mar 18, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)mallenexpensify commentedon Mar 19, 2026
Payment Summary
Contributor+: @hoangzinh due $250 via NewDot
garrettmknight commentedon Mar 25, 2026
$250 approved for @hoangzinh