Skip to content

Chat-Emoji reaction button is partially hidden in landscape. #87375

Closed

Description

@nlemma

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Launch app
  2. Open workspace chat with few expenses
  3. Long press and open context menu
  4. Turn to landscape
  5. 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.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7124702_1775645121106.Screenrecorder-2026-04-08-16-11-16-516.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @GCyganek

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Apr 8, 2026
  2. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    @mjasikowski recently merged #85229, but they are OOO right now, so I'll auto-assign someone else.

  3. github-actions commented on Apr 8, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  4. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    Triggered auto assignment to @yuwenmemon (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. melvin-bot commented on Apr 8, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. MelvinBot commented on Apr 8, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    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.

  7. OSBotify commented on Apr 8, 2026

    @OSBotify
    Contributor

    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:

    • 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.

    Verification:

    • Files affected: src/components/Modal/BaseModal.tsx, src/components/PopoverMenu.tsx, src/components/PopoverWithMeasuredContent/index.tsx
    • 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.

  8. 9 remaining items

  9. removed their assignment
    on Apr 13, 2026
  10. melvin-bot commented on Apr 13, 2026

    @melvin-bot

    @GCyganek Whoops! This issue is 2 days overdue. Let's get this updated quick!

  11. GCyganek commented on Apr 14, 2026

    @GCyganek
    Contributor

    PR will be merged soon

  12. melvin-bot commented on Apr 17, 2026

    @melvin-bot

    @GCyganek Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  13. GCyganek commented on Apr 20, 2026

    @GCyganek
    Contributor

    deployed to staging

  14. mallenexpensify commented on Apr 28, 2026

    @mallenexpensify
    Contributor

    This is one of 4 issues linked in the below PR, if payment is due, it'll be handled here

  15. truph01 commented on Apr 29, 2026

    @truph01
    Contributor

    We can close this one and handle the payment in the parent issue once all are done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions