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
Chat-Emoji reaction button is partially hidden in landscape. #87375
Version Number: V9.3.54-1 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#85229 Email or phone of affected tester (no customers):dreamnitethedragon+vegst@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Redmi note 10s android 13 App Component: Money Requests
Action Performed:
Launch app
Open workspace chat with few expenses
Long press and open context menu
Turn to landscape
Note emoji reaction button is partially hidden
Expected Result:
Emoji reaction button must not be partially hidden in landscape..
Actual Result:
Emoji reaction button is partially hidden in landscape.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
When the context menu opens in landscape mode on Android, BaseModal wraps its children in a ScrollView with a maxHeight of 75% of window height (controlled by MODAL_MAX_HEIGHT_TO_WINDOW_HEIGHT_RATIO_LANDSCAPE_MODE at src/CONST/index.ts:9497). This is the default behavior because shouldWrapModalChildrenInScrollViewIfBottomDockedInLandscapeMode defaults to true in BaseModal.tsx:74.
The PopoverReportActionContextMenu at PopoverReportActionContextMenu.tsx:464 does not opt out of this wrapping, so in landscape the emoji reaction button gets clipped by the constrained ScrollView.
Other similar popovers already opt out correctly — for example BasePopoverReactionList (line 43) and EmojiPicker (line 265) both pass shouldWrapModalChildrenInScrollViewIfBottomDockedInLandscapeMode={false}.
What changes do you think we should make in order to solve the problem?
Pass shouldWrapModalChildrenInScrollViewIfBottomDockedInLandscapeMode={false} to the PopoverWithMeasuredContent component in PopoverReportActionContextMenu.tsx (around line 464), consistent with how other popover components handle this.
What alternative solutions did you explore? (Optional)
An alternative would be to adjust the maxHeight ratio constant, but that would affect all bottom-docked modals in landscape mode globally. The targeted prop override is the established pattern used by other similar components.
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.
Classification: Frontend bug
Causing PR: #85229 - Unlock landscape mode by @GCyganek (High confidence)
Related Issues: #77280
Recommendation: REVERT
PR 85229 introduced landscape mode unlock for Android/iOS and applied layout fixes including a maxHeight cap (75% of window height) for bottom-docked modals in landscape. The context menu (which contains the emoji reaction button) is a BOTTOM_DOCKED modal on small-screen devices. In landscape mode the window height is significantly reduced, meaning the 75% cap may not be enough to fully show the emoji reaction button row at the top of the context menu, causing it to be partially clipped off-screen.
Assigned: @GCyganek (PR author), @mjasikowski@rushatgabhane@truph01 (approving reviewers)
Labels: DeployBlockerCash kept -- this is a frontend App regression introduced in this staging cycle. Not reproducible in production.
Evidence:
The issue body and melvin-bot both directly link to PR 85229 as the suspected cause.
PR 85229 is confirmed in the StagingDeployCash checklist (item 4 in chronological order, merged 2026-04-07).
The bug is staging-only (Reproducible in production: N/A - new feature) -- consistent with a newly merged PR.
PR 85229 explicitly modifies src/components/Modal/BaseModal.tsx to add a maxHeight equal to windowHeight * 0.75 for BOTTOM_DOCKED modals in landscape mode via MODAL_MAX_HEIGHT_TO_WINDOW_HEIGHT_RATIO_LANDSCAPE_MODE.
On small-screen Android in landscape, windowHeight is much smaller than in portrait. The 75% cap constrains the context menu container height, potentially cutting off the emoji reaction button row that renders at the top of the bottom-docked modal.
PR 85229 confirmed to modify all three of these files.
MODAL_MAX_HEIGHT_TO_WINDOW_HEIGHT_RATIO_LANDSCAPE_MODE: 0.75 constant was introduced by this PR in src/CONST/index.ts.
Root Cause: In BaseModal.tsx, PR 85229 added isBottomDockedModalInLandscapeMode and maxHeight = windowHeight * 0.75 to bottom-docked modal containers in landscape mode. On a phone like the Redmi Note 10S, landscape windowHeight is significantly smaller than portrait. The 75% cap can restrict the BOTTOM_DOCKED context menu enough that the emoji reaction button row at the top of the popover is partially hidden outside the visible modal area.
Activity
melvin-bot commentedon Apr 8, 2026
@mjasikowski recently merged #85229, but they are OOO right now, so I'll auto-assign someone else.
github-actions commentedon Apr 8, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Apr 8, 2026
Triggered auto assignment to @yuwenmemon (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 8, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Apr 8, 2026
Proposal
What is the root cause of that problem?
When the context menu opens in landscape mode on Android,
BaseModalwraps its children in aScrollViewwith amaxHeightof 75% of window height (controlled byMODAL_MAX_HEIGHT_TO_WINDOW_HEIGHT_RATIO_LANDSCAPE_MODEatsrc/CONST/index.ts:9497). This is the default behavior becauseshouldWrapModalChildrenInScrollViewIfBottomDockedInLandscapeModedefaults totrueinBaseModal.tsx:74.The
PopoverReportActionContextMenuatPopoverReportActionContextMenu.tsx:464does not opt out of this wrapping, so in landscape the emoji reaction button gets clipped by the constrainedScrollView.Other similar popovers already opt out correctly — for example
BasePopoverReactionList(line 43) andEmojiPicker(line 265) both passshouldWrapModalChildrenInScrollViewIfBottomDockedInLandscapeMode={false}.What changes do you think we should make in order to solve the problem?
Pass
shouldWrapModalChildrenInScrollViewIfBottomDockedInLandscapeMode={false}to thePopoverWithMeasuredContentcomponent inPopoverReportActionContextMenu.tsx(around line 464), consistent with how other popover components handle this.What alternative solutions did you explore? (Optional)
An alternative would be to adjust the
maxHeightratio constant, but that would affect all bottom-docked modals in landscape mode globally. The targeted prop override is the established pattern used by other similar components.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.OSBotify commentedon Apr 8, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #85229 - Unlock landscape mode by @GCyganek (High confidence)
Related Issues: #77280
Recommendation: REVERT
PR 85229 introduced landscape mode unlock for Android/iOS and applied layout fixes including a maxHeight cap (75% of window height) for bottom-docked modals in landscape. The context menu (which contains the emoji reaction button) is a BOTTOM_DOCKED modal on small-screen devices. In landscape mode the window height is significantly reduced, meaning the 75% cap may not be enough to fully show the emoji reaction button row at the top of the context menu, causing it to be partially clipped off-screen.
Assigned: @GCyganek (PR author), @mjasikowski @rushatgabhane @truph01 (approving reviewers)
Labels: DeployBlockerCash kept -- this is a frontend App regression introduced in this staging cycle. Not reproducible in production.
Evidence:
Verification:
Root Cause: In BaseModal.tsx, PR 85229 added isBottomDockedModalInLandscapeMode and maxHeight = windowHeight * 0.75 to bottom-docked modal containers in landscape mode. On a phone like the Redmi Note 10S, landscape windowHeight is significantly smaller than portrait. The 75% cap can restrict the BOTTOM_DOCKED context menu enough that the emoji reaction button row at the top of the popover is partially hidden outside the visible modal area.
9 remaining items
melvin-bot commentedon Apr 13, 2026
@GCyganek Whoops! This issue is 2 days overdue. Let's get this updated quick!
GCyganek commentedon Apr 14, 2026
PR will be merged soon
melvin-bot commentedon Apr 17, 2026
@GCyganek Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
GCyganek commentedon Apr 20, 2026
deployed to staging
mallenexpensify commentedon Apr 28, 2026
This is one of 4 issues linked in the below PR, if payment is due, it'll be handled here
truph01 commentedon Apr 29, 2026
We can close this one and handle the payment in the parent issue once all are done.