-
Notifications
You must be signed in to change notification settings - Fork 3.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
Fixed large Margin #5468
base: main
Are you sure you want to change the base?
Fixed large Margin #5468
Conversation
|
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.
I think a better approach for this and a few other things would be to make them configurable, or provide documentation to make it clear how to override them.
Not sure why this edit removed spaces in CSS and a commented out value isn't really a final solution.
Hey @dylans, when we click enter, the margin used to get added, so I wanted to remove that space by commenting out the CSS responsible for this issue |
Apologies for the slow reply, I've been traveling. I would remove the comment. In general we need a better way to specify/override stylistic behaviors, so maybe this can be the start of that. |
ok, I can land this once a changeset gets added and the linting issue are resolved. |
@@ -20,7 +20,7 @@ pre { | |||
white-space: pre-wrap; | |||
} | |||
|
|||
:not(pre) > code { | |||
:not(pre)>code { |
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.
why this change?
@@ -75,8 +75,8 @@ iframe { | |||
border: 1px solid #eee; | |||
} | |||
|
|||
[data-slate-editor] > * + * { | |||
margin-top: 1em; | |||
[data-slate-editor]>*+* { |
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.
same question here
@Noothan-am do you have plans to address the feedback or should I close this PR? |
Description
solves large space when we press Enter
Issue
Fixes: #5457
ScreenShot
Checks
yarn test
.yarn lint
. (Fix errors withyarn fix
.)yarn start
.)