Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Noothan-am
Copy link

Description
solves large space when we press Enter

Issue
Fixes: #5457

ScreenShot
image

Checks

  • The new code matches the existing patterns and styles.
  • The tests pass with yarn test.
  • The linter passes with yarn lint. (Fix errors with yarn fix.)
  • The relevant examples still work. (Run examples with yarn start.)

@changeset-bot
Copy link

changeset-bot bot commented Jun 25, 2023

⚠️ No Changeset found

Latest commit: a5f8ffd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Collaborator

@dylans dylans left a 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.

@Noothan-am
Copy link
Author

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 margin-top: 1em. The spaces in the CSS code are because of my code formatter that is not the actual change I made. I have only changed the margin-top by commenting it out. Should I remove this comment and add the feature discussed earlier?

@dylans
Copy link
Collaborator

dylans commented Jul 12, 2023

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 margin-top: 1em. The spaces in the CSS code are because of my code formatter that is not the actual change I made. I have only changed the margin-top by commenting it out. Should I remove this comment and add the feature discussed earlier?

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.

@dylans
Copy link
Collaborator

dylans commented Aug 5, 2023

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 {

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]>*+* {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question here

@dylans
Copy link
Collaborator

dylans commented Oct 4, 2023

@Noothan-am do you have plans to address the feedback or should I close this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wider space btw each line
3 participants