Skip to content
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 #27913] [$1000] Different font sizes in inline and multi-line codeblock #18866

Closed
1 of 6 tasks
kavimuru opened this issue May 12, 2023 · 81 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2

Comments

@kavimuru
Copy link

kavimuru commented May 12, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. open a chat
  2. send messages: inline codeblock and multiline codeblock

expected results:

same font size in both

Actual results:

different font size in each
Platform: chrome web desktop

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.13
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

bandicam.2023-05-11.22-17-23-040.mp4
Recording.585.mp4

Expensify/Expensify Issue URL:
Issue reported by:@chiragxarora
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683823629262529

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01db882fab4bc53c2d
  • Upwork Job ID: 1658661655173488640
  • Last Price Increase: 2023-05-31
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 12, 2023

Triggered auto assignment to @miljakljajic (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 12, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@allroundexperts
Copy link
Contributor

allroundexperts commented May 12, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Different font size for inline and multiline code block

What is the root cause of that problem?

The root cause is that we're setting a font size of 13 for inline code element here.

What changes do you think we should make in order to solve the problem?

We need to change the font size defined here to 15.

We can add this to web and desktop only if it looks bad on native.

What alternative solutions did you explore? (Optional)

None

@miljakljajic
Copy link
Contributor

I'm OOO - this was assigned after I signed off. Reassigning. Thank you!

@miljakljajic miljakljajic removed their assignment May 15, 2023
@miljakljajic miljakljajic added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels May 15, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 15, 2023

Triggered auto assignment to @JmillsExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 15, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Overdue label May 15, 2023
@JmillsExpensify
Copy link

Odd. I'm surprised this is the case, though to double check, @shawnborton is there a particular reason for this?

I'm triaging in any case to keep the issue moving while I'm at a conference.

@melvin-bot melvin-bot bot removed the Overdue label May 17, 2023
@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label May 17, 2023
@melvin-bot melvin-bot bot changed the title Different font sizes in inline and multi-line codeblock [$1000] Different font sizes in inline and multi-line codeblock May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01db882fab4bc53c2d

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to @iwiznia (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@phuchoang23
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Different font sizes in inline and multi-line codeblock

What is the root cause of that problem?

We're explicitly setting fontSize for inline code here

fontSize: 13,

What changes do you think we should make in order to solve the problem?

We should remove this fontSize line. So it will reuse the fontSize of base here

fontSize: variables.fontSizeNormal,

What alternative solutions did you explore? (Optional)

Instead of remove, we can set fontSize in line to

fontSize: variables.fontSizeNormal

So it will calculate fontSize normal in different device

@shawnborton
Copy link
Contributor

I'm not sure if there was a good reason, maybe that it was hard to make the text wrap multiple lines and look good in line with normal text if the font size was 15 for inline code? Either way, I would love to see some proposals of how we could pull it off.

@parasharrajat
Copy link
Member

@phuchoang23 Did you check the solution on Android or iOS? Can you paste screenshots here?

Shawn is correct. It was hard to show correct spacing between lines on native platforms which contains inline code blocks. Thus we chose this size.

@phuchoang23
Copy link
Contributor

@parasharrajat Yes. I have tested both of IOS and Android. Here is my results

IOS
  • Before
    before_ios
  • After
    after_ios
Android
  • Before
    before_android
  • After
    after_android

@parasharrajat
Copy link
Member

Can you try creating a paragraph of few lines which vhs inline code blocks at multiple places?

@melvin-bot melvin-bot bot added the Overdue label Aug 16, 2024
@iwiznia
Copy link
Contributor

iwiznia commented Aug 19, 2024

Still holding

@melvin-bot melvin-bot bot removed the Overdue label Aug 19, 2024
@parasharrajat
Copy link
Member

@shawnborton Could you please help us decide the desired results here?

Problem:

  1. On Native, we need to use 13px font size for inline code block to align it properly with the normal text. This is the limitation currently.
  2. we can still use 15px on web and desktop for inline code blocks are browser natively adjust spacing between lines.

But if we do this change the native and web platforms will have different font sizes for inline code blocks. What do you suggest?

@shawnborton
Copy link
Contributor

Hmm I think I would rather just make all of the inline code and code blocks use 13px. Our mono font optically feels "bigger" than our regular font, so I think it's okay if we back it down to feel balanced with regular text. Is that possible? Can you also share screenshots of what is going on here - I am a bit out of the loop with the issue. cc @Expensify/design for visibility too.

@dannymcclain
Copy link
Contributor

Totally agree Shawn, I think that sounds like a good course of action here.

@parasharrajat
Copy link
Member

Hmm I think I would rather just make all of the inline code and code blocks use 13px. Our mono font optically feels "bigger" than our regular font.

Looks like we are already doing this. So this issue is technically solved.

@parasharrajat
Copy link
Member

@JmillsExpensify We can close this issue. Is this eligible for partial C+ payment(25%) for proposal review? It has been on hold for long.

@dubielzyk-expensify
Copy link
Contributor

Our mono font optically feels "bigger" than our regular font

Especially agree with the point above

@parasharrajat
Copy link
Member

Bump @JmillsExpensify

@JmillsExpensify
Copy link

Did we go with Shawn's solution yet?

@melvin-bot melvin-bot bot removed the Overdue label Oct 24, 2024
@chiragxarora
Copy link
Contributor

@JmillsExpensify We can close this issue. Is this eligible for partial C+ payment(25%) for proposal review? It has been on hold for long.

Along with the bug bounty right?

@parasharrajat
Copy link
Member

@JmillsExpensify Shawn's solution is already in place so no change is needed .

@parasharrajat
Copy link
Member

@JmillsExpensify Bump.

@parasharrajat
Copy link
Member

@JmillsExpensify Friendly reminder for #18866 (comment)

@JmillsExpensify
Copy link

Payment summary:

@chiragxarora
Copy link
Contributor

Hello @JmillsExpensify
I could not find any active contract on upwork for this one. Could you please send it again?
Thankyou so much

@JmillsExpensify
Copy link

Yes, I'm working on it. Hold tight

@JmillsExpensify
Copy link

Just sent you an offer.

@chiragxarora
Copy link
Contributor

Accepted!
Thanks

@JmillsExpensify
Copy link

No worries. @parasharrajat please make sure that we have a regression test in place before requesting payment. Thanks all!

@parasharrajat
Copy link
Member

Regression Test Steps

  1. Add two messages.
  2. One for Inline code block and another for multi-line code block.
  3. Compare the font sizes of text for both messages.
  4. They should look the same.

Do you agree 👍 or 👎 ?

@parasharrajat
Copy link
Member

Payment requested as per #18866 (comment)

@garrettmknight
Copy link
Contributor

Payment summary:

Bug report: $250 @chiragxarora via Upwork
Reviewer: $250 @parasharrajat via NewDot.

@JmillsExpensify
Copy link

$250 approved for @parasharrajat

@JmillsExpensify
Copy link

P.S. Created the issue for the regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Monthly KSv2
Projects
None yet
Development

No branches or pull requests