-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 able to scroll horizontally out of screen width on sign in page #25457
Fix able to scroll horizontally out of screen width on sign in page #25457
Conversation
@narefyev91 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There are 2 existing issues on |
@@ -160,8 +160,8 @@ function Footer(props) { | |||
|
|||
return ( | |||
<View style={[styles.flex1]}> | |||
<View style={[props.isSmallScreenWidth ? StyleUtils.getBackgroundColorStyle(themeColors.signInPage) : {}]}> | |||
{props.isSmallScreenWidth ? ( | |||
<View style={[...(isVertical ? [StyleUtils.getBackgroundColorStyle(themeColors.signInPage), styles.overflowHidden] : [{}])]}> |
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 think we can move this our from render and add const footerWrapper = isvertical ? StyleUtils.getBackgroundColorStyle(themeColors.signInPage), styles.overflowHidden] : null
and use <View style={footerWrapper}
something like that
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.
Good idea. Updated
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid-web.movMobile Web - Safariios-web.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
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! Small comment to fix
🎀 👀 🎀 C+ reviewed
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.
looks good to me as well, thanks!
✋ 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/srikarparsi in version: 1.3.56-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
@@ -128,7 +128,7 @@ function SignInPageLayout(props) { | |||
keyboardShouldPersistTaps="handled" | |||
ref={scrollViewRef} | |||
> | |||
<View style={[styles.flex1, styles.flexColumn, StyleUtils.getMinimumHeight(Math.max(variables.signInContentMinHeight, containerHeight))]}> | |||
<View style={[styles.flex1, styles.flexColumn, styles.overflowHidden, StyleUtils.getMinimumHeight(Math.max(variables.signInContentMinHeight, containerHeight))]}> |
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.
It seems that overflowHidden
has introduced a bug with mobile chrome in #40559.
Details
On iOS mWeb, we can hold down on any text (or text input) and keep dragging the selection to the right which will eventually scroll the page horizontally out of the screen width.
Fixed Issues
$ #24328
PROPOSAL: #24328 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
mWeb/Android/iOS
Note for Android
On Android, you can only drag the magnifying glass as long as the length of the email/input. So, fill the email input with a long email
Web/Desktop
Just make sure the sign page is not broken
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
Web
Screen.Recording.2023-08-18.at.12.47.57.mov
Mobile Web - Chrome
Screen.Recording.2023-08-18.at.12.46.31.mov
Mobile Web - Safari
Screen.Recording.2023-08-18.at.12.41.59.mov
Desktop
Screen.Recording.2023-08-18.at.12.48.57.mov
iOS
Screen.Recording.2023-08-18.at.12.42.45.mov
Android
Screen.Recording.2023-08-18.at.13.32.18.mov