-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/regression 18110 composer should have the same height in other platforms #19516
Conversation
@MariaHCD I added the link to the issue is "#18110", but right format is "https://github.com/Expensify/App/issues/", so please help to assign reviewer again. Sorry for this inconvenience. |
src/components/Composer/index.js
Outdated
@@ -426,6 +426,10 @@ class Composer extends React.Component { | |||
} | |||
|
|||
render() { | |||
let paddingValue = 5; | |||
if (this.props.numberOfLines === 1) paddingValue = 9; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved to styles? I think it doesn't make sense to have styling added as code in render
. Better to get it from styles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved it to StyleUtils. @mananjadhav please check again
@dukenv0307 Can you remove the word |
I updated |
Co-authored-by: Tim Golen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the changes @dukenv0307. I'll finish the checklist today.
Reviewer Checklist
Screenshots/Videos |
@dukenv0307 for all my Android emulators, the height shows up as 38.2, unlike 38 in your screenshot (and other platforms). cc - @tgolen |
I think it's best to fix in another PR. Thanks for highlighting that. Can you take the latest pull for main and resolve conflicts? |
@mananjadhav I just updated. |
@tgolen did you get a chance to look at the previous comments? |
Quick bump @tgolen |
@mananjadhav I just saw that
|
@mananjadhav @tgolen Please help review this PR to complete it when you have time. |
Thanks for the bump @dukenv0307. Can you resolve the conflicts please? @tgolen I've tested this, can you please take a look at the PR? |
@mananjadhav I resolved the conflict and also updated style for wrap view of composer in |
@tgolen Friendly bump to help us to take a look at the PR. |
@mananjadhav @tgolen Friendly bump. |
@mananjadhav What we should do to move forward with this PR? |
Hi! I was out on sabbatical for 2 months. Next time, if I (or anyone from Expensify) doesn't respond in a couple of days, please start asking for help in Slack to see what is going on and move forward with urgency on issues, not just waiting for an update indefinitely. |
✋ 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/tgolen in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
paddingTop: paddingValue, | ||
paddingBottom: paddingValue, | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✋ Coming from #26222
The composer padding is changed inconsistently due to the number of lines changing between 3 or more, it's noticeable while the composer is full size.
Details
Composer in Android should have the same height in other platforms
Fixed Issues
$ #18110
PROPOSAL: #18110 (comment)
$ #19358
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos 18110
Web
Web.mov
Mobile Web - Chrome
chrome.mp4
Mobile Web - Safari
safari.mp4
Desktop
Desktop.mov
iOS
ios.mov
Android
Android.mov
Screenshots/Videos 19358
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android