Fix insufficient spacing between card name and issue card button on resize - #97018
Conversation
Apply a permanent flex gap3 on the feed-selector/header-buttons parent container instead of the conditional mt3 margin, which never applied at medium width because shouldDisplayButtonsInSeparateLine is false there. Fixes Expensify#94988.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product.
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp97018-android-hybrid-001.mp4Android: mWeb Chrome97018-mweb-chrome-001.mp4iOS: HybridApp97018-ios-hybrid-001.mp4iOS: mWeb Safari97018-mweb-safari-001.mp4MacOS: Chrome / Safari97018-web-chrome-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @MobileMage for the PR.
@arosiclair Changes LGTM and works well.
Over to you for review. Thanks
|
🚧 arosiclair has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 9.4.49-0 🚀
|
|
🤖 No help site changes required. This PR is a layout-only spacing fix on the Expensify Card list page. It changes CSS style arrays (adds a flex Why no docs update is needed
Since no documented feature or behavior changed, I did not create a draft help site PR. @MobileMage, please confirm you agree no help site update is needed here. If you believe a docs change is warranted, let me know what behavior should be documented and I'll draft a PR. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.4.49-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
On the Expensify Card list page, the gap between the feed selector (Card name) and the header buttons collapses when you resize the window to a medium width. At medium width the buttons stack onto a separate line (
shouldChangeLayout), but the margin that created the gap (styles.mt3) sits behindshouldDisplayButtonsInSeparateLine, which only turns true in the narrow-portrait layout. So at medium width no spacing applies and the Card name and buttons touch.This PR puts a permanent flex
gapon the shared parent that wraps theFeedSelectorand the header buttons. Onestyles.gap3(12px, the same value as the oldmt3) holds the separation in both layouts: horizontal when the row is side-by-side, vertical when it stacks. The stalemt3line is removed.Fixed Issues
$ #94988
PROPOSAL: #94988 (comment)
Tests
Offline tests
No offline-specific behavior. The change is layout only.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Videos will be added in a few hours.
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari