-
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
#20709: Use windowHeight in getNavigationModalCardStyles #23222
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
@jscardona12 Please consider the following:
|
Also please change the title to be more explanatory. It's a bit unclear. |
Hi @s77rt, code changes made and tested. and PR description comments applied as well. |
@@ -8,4 +8,5 @@ export default ({windowHeight, isSmallScreenWidth}) => ({ | |||
// https://github.com/Expensify/App/issues/12005 | |||
// https://github.com/Expensify/App/issues/17824 |
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 you add a link to the issue we are fixing as well
Can you change the title to: Use |
@s77rt done |
@s77rt index.js added |
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/Videos |
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.
LGTM! 🚀
@jscardona12 Oops, we have a lint issue, please run prettier and commit changes |
Hi @johnmlee101 @s77rt, prettier run is up now. |
✋ 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/johnmlee101 in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
height: `${windowHeight}px`, | ||
minHeight: `${windowHeight}px`, |
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.
This caused a regression on Safari where the window height is not reliable.
Details
pass the windowHeight to the new navigationModalCard implementation in App/src/styles
/styles.js. , and apply it to the height property.
This would be re-applying the fix on this PR with previous fix
to the new implementation.
Fixed Issues
$ #20709
PROPOSAL: #20709 (comment)
Tests
First Scenario
Second Scenario
Offline tests
QA Steps
First Scenario
Second Scenario
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
This just happens in Mobile Web - Safari
Web
Screen.Recording.2023-07-20.at.6.29.26.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-07-20.at.6.57.21.AM.mov
Mobile Web - Safari
withSolution.mp4
Desktop
Screen.Recording.2023-07-20.at.7.01.44.AM.mov
iOS
WhatsApp.Video.2023-07-20.at.6.41.12.AM.mp4
Android
Screen.Recording.2023-07-20.at.6.52.30.AM.mov