-
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: Status - Emoji in custom status holder is not centered. #42032
fix: Status - Emoji in custom status holder is not centered. #42032
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@dubielzyk-expensify @abdulrahuman5196 One of you needs to 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] |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
I see that this is draft, but would be good with some screenshots for my design review when you're ready 👍 Thanks! |
@dubielzyk-expensify, recordings of web safari and chrome Chromeweb_chrome.mp4Safariweb_safari.mp4 |
Nice 🦅 👁️ Jon! |
!Browser.isMobile() && { | ||
transform: 'scale(0.65)', | ||
fontSize: 13, | ||
lineHeight: 15, |
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.
What happens if we use 16 instead?
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 will try that and let you know in a few hours. Can you please let me know what's your expectation is by doing that? Is there a problem with lineHeight: 15
?
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.
We just typically try to keep things at base4 for our sizes (12, 16, 20, etc)
@dubielzyk-expensify, thanks for the review. I guess the screenshots you provided are from Chrome and are not zoomed in, is that correct? I just wanted to confirm before I try to find a solution for that, because when zoomed in, it's correctly centered for me on both Safari and Chrome. Sorry for the late reply, I'm not at my workplace. |
Correct. It's on Chrome taken with 100% so no zoom |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
…323/App into krishna2323/issue/35389
@dubielzyk-expensify, can you pls retest this PR. I increased the emoji size a bit and now it is correctly centered. On Chrome taken with 100% |
That looks good to me. The 🟥 seems to overstep its boundries by less than a pixel. Thoughts on this @shawnborton ? Should we |
@dubielzyk-expensify, yep, thats the only issue, we can also increase the container width and height by 2 px, currently its 20px. |
I don't think we need to change the container size or adjust the emoji size. I'd be fine leaving as-is, or adding the overflow-hidden like you are suggesting. |
@Krishna2323 : Let's add overflow hidden then and get this shipped 😄 |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@abdulrahuman5196, you can start reviewing. @dubielzyk-expensify @shawnborton, Overflow hiddenOverflow visible |
No strong feelings from me, either one works! |
Let's go with |
@abdulrahuman5196, friendly bump for review. |
Hi, I will check on this review tomorrow, I am assuming design team is fine with the current path. |
Yup, sounds like we landed on overflow: hidden |
Checking now |
I checked all platforms expect android chrome. Facing site issues. Will check back again in morning and close this out. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-03.at.11.32.02.PM.mp4Android: mWeb ChromeScreen.Recording.2024-06-04.at.2.45.01.PM.mp4iOS: NativeScreen.Recording.2024-06-03.at.11.24.16.PM.mp4iOS: mWeb SafariScreen.Recording.2024-06-03.at.11.29.25.PM.mp4MacOS: Chrome / SafariScreen.Recording.2024-06-03.at.11.18.02.PM.mp4MacOS: DesktopScreen.Recording.2024-06-03.at.11.21.12.PM.mp4 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @dubielzyk-expensify / @madmax330
🎀 👀 🎀
C+ Reviewed
✋ 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/madmax330 in version: 1.4.82-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.82-4 🚀
|
Details
Fixed Issues
$ #35389
PROPOSAL: #35389 (comment)
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
iOS: mWeb Safari
MacOS: Chrome / Safari
Chrome:
https://github.com/Expensify/App/assets/85894871/aea29909-8dd4-43b0-ad97-d924f58e0e37
Safari
https://github.com/Expensify/App/assets/85894871/2a45063a-4d0a-46cd-b420-3533629fe3ce
MacOS: Desktop