-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Fixes #4407 KaTeX text no longer goes outside text container in MathExpressionInput #6130
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6130 +/- ##
========================================
Coverage 45.33% 45.33%
========================================
Files 525 525
Lines 30862 30862
Branches 4615 4615
========================================
Hits 13990 13990
Misses 16872 16872 Continue to review full report at Codecov.
|
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.
Hi @ctao5660, thanks for the PR! Took a pass, PTAL!
@@ -1,5 +1,5 @@ | |||
<div class="guppy-div" | |||
style="width: 100%; height: 100px; padding: 5px;"> | |||
style="width: 100%; height: 100px; padding: 5px; overflow:auto; word-break: normal; line-break; word-wrap: normal"> |
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.
Add space after overflow:
. Also, value of line-break
is missing?
Add semicolon after word-wrap: normal
.
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.
done.
Hi @ctao5660, Right now if the text exceeds the text area, the learner has to scroll horizontally in order to see the full KaTeX text. I think it will be better if the cursor automatically goes to next line whenever the cursor comes to the end of the text area. What do you think? |
Hi Vibhor, Nitesh agreed with me that the scroll will be better UX as
multiple lines means longer equations can get split at weird places making
it harder for users to debug those equations.
…On Sun, Jan 20, 2019 at 10:46 PM Vibhor Agarwal ***@***.***> wrote:
Hi @ctao5660 <https://github.com/ctao5660>, Right now if the text exceeds
the text area, the learner has to scroll horizontally in order to see the
full KaTeX text. I think it will be better if the cursor automatically goes
to next line whenever the cursor comes to the end of the text area. What do
you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6130 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AmFbxmb9riQ9pHGHjnsDcTBe86eoZ1SVks5vFTgZgaJpZM4aGwrm>
.
|
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.
Ah... I see. Thanks for letting me know. I also agree here!
LGTM, thanks!
Explanation
Fixes #4407, Katex text now overflows correctly.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.