-
-
Notifications
You must be signed in to change notification settings - Fork 660
fix: Placeholder overflow issues #2291
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,10 +40,6 @@ BASIC STYLES | |
| overflow: visible; | ||
| } | ||
|
|
||
| .bn-inline-content { | ||
| width: 100%; | ||
| } | ||
|
|
||
| /* | ||
| NESTED BLOCKS | ||
| */ | ||
|
|
@@ -542,15 +538,13 @@ NESTED BLOCKS | |
| } | ||
|
|
||
| /* PLACEHOLDERS*/ | ||
| .bn-inline-content:has(> .ProseMirror-trailingBreak:only-child):before { | ||
| /*float: left; */ | ||
| pointer-events: none; | ||
| height: 0; | ||
| /* width: 0; */ | ||
| position: absolute; | ||
| .bn-block-content:has(.ProseMirror-trailingBreak:only-child):after { | ||
| font-style: italic; | ||
| /* Removes text cursor offset. */ | ||
| margin-inline: -2px; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is to be able to show the text cursor underneath the placeholder. There may be a way around this, by adding data attributes to make the width of the flex layout different based on whether the placeholder is showing or not. But, doesn't seem to cause issues, may revisit if it does something weird |
||
| pointer-events: none; | ||
| max-width: 100%; | ||
| } | ||
| /* TODO: should this be here? */ | ||
|
|
||
| /* TEXT COLORS */ | ||
| [data-style-type="textColor"][data-value="gray"], | ||
|
|
||
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.
Double checked this, the previous issue #1523 seems to still be corrected with this in-place