-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: UI issues with code editor #23332
Conversation
- Added 6px x padding - Use class variables instead of ref
/ok-to-test sha=fea4749 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4977578355. |
/build-deploy-preview env=release |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4977582413. |
Deploy-Preview-URL: https://appsmith-onnbjow0i-get-appsmith.vercel.app |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4977578355.
|
/ok-to-test sha=2d54c36 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4979924785. |
/ok-to-test sha=d987d9d |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4980001560. |
/build-deploy-preview env=release |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4980352802. |
Deploy-Preview-URL: https://appsmith-rfy9bfhks-get-appsmith.vercel.app |
/ok-to-test sha=e342e2a |
/build-deploy-preview env=release |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4987283926. |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4987284913. |
Deploy-Preview-URL: https://appsmith-mmj7qern7-get-appsmith.vercel.app |
/ok-to-test sha=45868bf |
|
||
word-wrap: break-word !important; | ||
white-space: pre-wrap !important; | ||
word-break: normal !important; | ||
|
||
color: ${({ contentKind }) => | ||
contentKind === ContentKind.CODE | ||
? "#063289" | ||
? "#304eaa" |
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.
If the same color is being used in the code editor component, can we use a constant at both places instead of hard coding the hex 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.
Done
app/client/src/components/editorComponents/CodeEditor/styledComponents.ts
Outdated
Show resolved
Hide resolved
/ok-to-test sha=356f67c |
/build-deploy-preview env=release |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4990403567. |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/4990406988. |
…mponents.ts Co-authored-by: Ravi Kumar Prasad <[email protected]>
/ok-to-test sha=b7bf9f2 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4990488939. |
/ok-to-test sha=0a6f175 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4990513946. |
Deploy-Preview-URL: https://appsmith-ep4zpazz5-get-appsmith.vercel.app |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4990513946.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4990513946.
|
/ok-to-test sha=012b6cf |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/4998608259. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4998608259.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4998608259. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/4998608259. |
Description
#22652 introduced new styles to code in Appsmith. Along with it was some unintentional changes.
Bundle optimization PR introduced, CodeEditorFallback component which incorrectly renders borders and causes UI to flicker. It also broke styles of lint message popover. This PR fixes these issues.
Code changes
PR fixes following issue(s)
Fixes # (issue number)
Media
Type of change
Testing
How Has This Been Tested?
Test Plan
Visual checks to test for changes as per this Notion doc
Issues raised during DP testing
None
Checklist:
Dev activity
QA activity:
Test Plan Approved
label after Cypress tests were reviewedTest Plan Approved
label after JUnit tests were reviewed