Fix Chronos timer dropdown button layout on native platforms#87828
Conversation
Use wrapperStyle instead of style on ButtonWithDropdownMenu so flex1 applies to the outer wrapper View rather than the inner split-button View. Co-authored-by: Tim Golen <tgolen@users.noreply.github.com>
|
@ZhenjaHorbach 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] |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb Chrome2026-04-14.11.41.01.moviOS: mWeb Safari2026-04-14.11.41.01.movMacOS: Chrome / Safari2026-04-14.11.30.07.mov |
|
LGTM! |
|
Haha yeah I think it technically might be centered, as weird as it may look. |
@shawnborton |
|
We move on! |
|
Cool, cool.. thanks for checking! |
|
🚧 @srikarparsi 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, and Web. Happy testing! 🧪🧪
|
|
✋ 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/srikarparsi in version: 9.3.60-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are needed for this PR. It's a one-line layout fix ( |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.60-22 🚀
|




Explanation of Change
PR #87543 replaced
ButtonwithButtonWithDropdownMenuinChronosTimerHeaderButtonbut kept passingstyle={styles.flex1}. InButtonWithDropdownMenu,styleapplies to an inner View (the split-button wrapper), while the outer wrapper useswrapperStyle. On native platforms, the unstyled outer View shrink-wraps its content, causing the dropdown button to render with broken layout.This PR changes
styletowrapperStylesoflex: 1applies to the outer wrapper, matching how the originalButtoncomponent handled it.Fixed Issues
$ #87820
PROPOSAL: #87820 (comment)
AI Tests
npm run typecheck-tsgo): passednpm test -- --silent): running in CIHuman Tests
Offline tests
None
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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