Repository navigation
Fix category and tag icon alignment in expense rows - #83993
Conversation
Add alignItemsCenter to the TextWithIconCell container View so that the 12px category/tag icons are vertically centered relative to multi-line text, matching the alignment used in TransactionPreviewContent. Co-authored-by: Yuwen Memon <yuwenmemon@users.noreply.github.com>
|
The failing Analysis: The Claude Code Action automated reviewer ( Evidence: This PR modifies a single file ( Recommendation: Re-run the |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-03.at.5.49.57.PM.movAndroid: mWeb ChromeScreen.Recording.2026-03-03.at.5.50.33.PM.moviOS: HybridAppScreen.Recording.2026-03-03.at.5.47.31.PM.moviOS: mWeb SafariScreen.Recording.2026-03-03.at.5.48.11.PM.movMacOS: Chrome / SafariScreen.Recording.2026-03-03.at.5.49.15.PM.mov |
eh2077
left a comment
There was a problem hiding this comment.
Works well! Confirmed TextWithIconCell is only used by CategoryCell and TagCell in TransactionItemRow, so the change is safe and won't break UI of other components.
|
@yuwenmemon looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Not an Emergency, the Claude Code runner just didn't work |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @yuwenmemon 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.3.31-0 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.31-12 🚀
|
Explanation of Change
The
TextWithIconCellcomponent (used to render category/tag icons alongside their text in expense rows) was missingalignItems: 'center'on its container View. Without this, React Native defaults toalignItems: 'stretch', causing the 12px icon to appear top-aligned when the text wraps to multiple lines. This addsstyles.alignItemsCenterto match the alignment behavior already used inTransactionPreviewContent, ensuring consistent vertical centering of icons across expense previews and expense rows.Fixed Issues
$ #83989
Tests
Offline tests
N/A — this is a pure styling change with no network interaction.
QA Steps
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