-
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 small search visual bugs #51081
Fix small search visual bugs #51081
Conversation
a1ef3f0
to
4f2da3a
Compare
@rayane-djouah 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] |
Reviewer Checklist
Screenshots/Videos |
@Kicu, the search button is positioned too close to the right side of the window on some pages (the spacing needs to be Screen.Recording.2024-10-18.at.7.23.58.PM.mov |
We have conflicts |
@rayane-djouah fixed, I hope I styled the button now in such a way the spacing is consistent. some examples:
|
</View> | ||
{shouldDisplaySearchRouter && <SearchButton style={styles.pr5} />} |
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.
{shouldDisplaySearchRouter && <SearchButton style={styles.pr5} />} | |
{shouldDisplaySearchRouter && <SearchButton style={styles.mr5} />} |
Before:
Screen.Recording.2024-10-21.at.10.17.57.AM.mov
After:
Screen.Recording.2024-10-21.at.10.18.46.AM.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.
Thanks I will change this.
Just FYI in cases where SearchButton
would not be shown, then the rightmost component would be this View:
https://github.com/Expensify/App/blob/main/src/components/HeaderWithBackButton/index.tsx#L194
and it uses styles.pr5
- perhaps we should also change this one?
3f8a1c5
to
2815eca
Compare
@rayane-djouah I amended just this one last commit since it's so small |
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
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 and tests well
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Tests were passing |
✋ 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/luacmartins in version: 9.0.53-0 🚀
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.53-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.53-1 🚀
|
Details
Very simple visual fixes after introduction of new Search Router.
Done:
SearchButton
was moved a correct position withinHeaderWithBackButton
, so that flex works correctly and icons are not too close to each otherSearchButton
on AddressPageFixed Issues
$ #51009
$ #51077
PROPOSAL:
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 methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
rec-longname-ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
rec-longname-web.mp4
MacOS: Desktop