Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions packages/core/src/editor/Block.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
/*
BASIC STYLES
*/
/* Fix placeholder alignment on mobile */
@media (max-width: 600px) {
.bn-inline-content:has(> .ProseMirror-trailingBreak:only-child)::before {
position: relative !important;
top: 0 !important;
left: 0 !important;
margin-left: 4px !important;
display: inline-block !important;
line-height: inherit !important;
}
}


.bn-block-outer {
line-height: 1.5;
Expand Down Expand Up @@ -33,8 +45,8 @@ BASIC STYLES
transition: all 0.2s;
/* Workaround for selection issue on Chrome, see #1588 and also here:
https://discuss.prosemirror.net/t/mouse-down-selection-behaviour-different-on-chrome/8426
The :before element causes the selection to be set in the wrong place vs
other browsers. Setting no height fixes this, while list item indicators are
The :before element causes the selection to be set in the wrong place vs
other browsers. Setting no height fixes this, while list item indicators are
still displayed fine as overflow is not hidden. */
height: 0;
overflow: visible;
Expand Down