-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 #4549 - Fixed the position of code editor #4674
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4674 +/- ##
========================================
Coverage 44.88% 44.88%
========================================
Files 384 384
Lines 23317 23317
Branches 3758 3758
========================================
Hits 10466 10466
Misses 12851 12851 Continue to review full report at Codecov.
|
One clarification on the original issue, btw: I think we do want the code editor width to depend on the size of the viewport, in exactly the same way as it already does. It just shouldn't depend on the content of the lines within it. |
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.
Testing the UI, this looks good! Thanks @bansalnitish ! Though I was wondering if you could just briefly explain how this works (I'm no CSS guru)... it seems as though this would cause the width to be fixed at 650px, but that doesn't seem to be the case.
Hey @tjiang11, from what I experienced with the UI, the max-width is attained only when typing is done and otherwise the width stays to be at the minimum. So I fixed the width to 650px and that works fine. Do you want the width to be fixed at 650px or change it to some other fixed value? |
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.
Okay, this seems good. Thanks @bansalnitish !
This PR fixes #4549.
Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.