Repository navigation
Fix icon truncation - #86465
Fix icon truncation#86465
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d16a7febb6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| subtitle={translate('errorPage.subtitle')} | ||
| subtitleStyle={styles.textSupporting} | ||
| containerStyle={[{minHeight: CHART_CONTENT_MIN_HEIGHT}, styles.gap5]} | ||
| contentFitImage="contain" |
There was a problem hiding this comment.
Apply a real size fix instead of no-op contentFitImage
illustrations.BrokenMagnifyingGlass is an SVG React component, so this new contentFitImage="contain" prop has no effect in the render path: BlockingView passes it to Icon, but ImageSVG only uses contentFit for static image sources and ignores it for component-based SVGs. In practice, this means the truncation behavior you’re trying to fix remains unchanged on the SVG-backed platforms where this view is rendered.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
I've double checked it in app and everything seems to be working fine for ImageSVG, not a good suggestion
Reviewer Checklist
Screenshots/Videos |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @puneetlath 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/puneetlath in version: 9.3.51-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. This PR is a one-line visual fix that adds This change:
There is nothing in this change that would impact the documentation under |
|
Hi @borys3kk. QA team failed this PR with an original issue on Android 1775006707701.Android_86465.mp4 |
|
hello @IuliiaHerets the fix was for the error icon and not the offline one, but my bad, should have checked for both of them, I can create follow up PR to fix the offline one as well if you want |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.3.51-10 🚀
|





Explanation of Change
Added contentFitImage="contain" to preserve icon height and prevent truncation.
Fixed Issues
$ #86340
PROPOSAL:
Tests
Prerequisite: have an error displayed (I've made it programmatically by changing
shouldShowErrorIndicatorto!shouldShowErrorIndicatorand thus why you can see chart and error icon at the same time it's not possible in regular app)Offline tests
QA Steps
same as tests
// TODO: These must be filled out, or the issue title must include "[No QA]."
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