-
Notifications
You must be signed in to change notification settings - Fork 899
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 query editor cursor alignment by removing monaco css overrides #8912
Fix query editor cursor alignment by removing monaco css overrides #8912
Conversation
Monaco editor computes the cursor position internally and does not account for any css overrides that change the position of the line (padding, margin, etc). This change removes the css override while we implement these styles with the monaco api directly. Signed-off-by: Daniel Rowe <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8912 +/- ##
==========================================
+ Coverage 60.86% 60.87% +0.01%
==========================================
Files 3802 3802
Lines 91059 91060 +1
Branches 14370 14370
==========================================
+ Hits 55425 55437 +12
+ Misses 32095 32084 -11
Partials 3539 3539
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Can you fix the lint? |
Signed-off-by: Daniel Rowe <[email protected]>
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.
Adding new line to resolve linting issue
Sure thing, I've fixed the linting issue. |
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.
can you post a screenshot of the before/after of padding
approving to unblock assuming it passes ci
Yup, I've added before and after screenshots in the PR description |
…8912) * Fix query editor cursor alignment by removing monaco css overrides Monaco editor computes the cursor position internally and does not account for any css overrides that change the position of the line (padding, margin, etc). This change removes the css override while we implement these styles with the monaco api directly. Signed-off-by: Daniel Rowe <[email protected]> * Changeset file for PR #8912 created/updated * fix linting Signed-off-by: Daniel Rowe <[email protected]> --------- Signed-off-by: Daniel Rowe <[email protected]> Signed-off-by: Daniel Rowe <[email protected]> Co-authored-by: Daniel Rowe <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit f110637) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Monaco editor computes the cursor position internally and does not account for any css overrides that change the position of the line (padding, margin, etc). This change removes the css override while we implement these styles with the monaco api directly.
Changelog
Before
After
Check List
yarn test:jest
yarn test:jest_integration