-
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
[HOLD] fix: improve mobile's inline code block font and alignment #15367
Conversation
@stitesExpensify @Santhosh-Sellavel 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] |
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.
Code Looks good, but I will like to test it a bit more extensively so I would test it over the weekend.
Hi @Santhosh-Sellavel did you get a chance to test this weekend like you planned? |
Sorry didn't able to test extensively as I planned, caught occupied with other items and will update you by today or tomorrow. |
Hi @Santhosh-Sellavel, I will take a look on this today. |
Hi @Santhosh-Sellavel ! Tweaking a little bit with the positioning in iOS, what do you think about this? diff --git a/src/styles/codeStyles/index.ios.js b/src/styles/codeStyles/index.ios.js
index a387609040..0dfd3babfc 100644
--- a/src/styles/codeStyles/index.ios.js
+++ b/src/styles/codeStyles/index.ios.js
@@ -7,7 +7,7 @@ const codeWordWrapper = {
const codeWordStyle = {
position: 'relative',
- top: 2.5,
+ top: 3.5,
};
const codeTextStyle = { As stated before, this is a workaround so the alignment won't be perfect until I get a proper fix for this on native side. We can also explore what was proposed here. |
@stitesExpensify Can we have a check with design or lets proceed? |
@fabioh8010 can you create a before and after so that we can tag design and have them pick between them? |
Sure @stitesExpensify , I'm OOO at the moment but I'll return on Tuesday and provide some examples to present to the design team! |
Hi @stitesExpensify @Santhosh-Sellavel , today I came across this PR while helping a team member with testing and we noticed that that PR could help us solving this back tick issue properly, without workarounds. The idea here would be using this new prop What do you think? Is it worth waiting for that PR and internal RN update to be available for us in order to proceed with a proper fix on my PR? |
@stitesExpensify @Santhosh-Sellavel Did you have opportunity to read my last comment? |
I've read already It makes sense to wait here cc: @stitesExpensify |
I agree that it makes sense to wait. Not using a workaround seems worth it to me! |
Since there hasn't been movement on that PR in ~6 months, should we close this PR for now? |
@stitesExpensify I think yes, we can open later if necessary. |
Details
Made some changes in mobile's inline code block to have a scalable font just like the other texts and not cut emojis, and improved some stylings to make the code block more aligned with the text. This is a temporary solution until I have a proper fix to the react-native issue that is the root cause of this misalignment problem.
Fixed Issues
$ #8132
PROPOSAL: #8132 (comment)
Tests
Lorem ipsum `dolor 🚀` sit amet, con`s``e`ctetur `adipiscing elit, sed do eiusmod tempor incididunt` ut labore et dolore `magna` ali`q`u`a`. 🚀
Offline tests
This feature doesn't change or is impacted by offline mode.
QA Steps
Same as above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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-02-22.at.18.39.11.mov
Screen.Recording.2023-02-22.at.18.40.48.mov
Mobile Web - Chrome
Screen.Recording.2023-02-22.at.18.44.55.mov
Mobile Web - Safari
Screen.Recording.2023-02-22.at.18.45.53.mov
Desktop
Screen.Recording.2023-02-22.at.18.47.25.mov
iOS
Screen.Recording.2023-02-22.at.18.49.00.mov
Android
Screen.Recording.2023-02-22.at.18.51.27.mov