Skip to content

Commit

Permalink
chore(collab): align transcript editor's line padding with article text
Browse files Browse the repository at this point in the history
  • Loading branch information
nonumpa committed Jul 12, 2023
1 parent 802dc59 commit 6df310a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions components/Collaborate/Prosemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ li.ProseMirror-selectednode:after {
display: none;
}

.ProseMirror p:first-child,
.ProseMirror h1:first-child,
.ProseMirror h2:first-child,
.ProseMirror h3:first-child,
Expand All @@ -145,12 +144,12 @@ li.ProseMirror-selectednode:after {
}

.ProseMirror {
padding: 4px 8px 4px 14px;
padding: 14px;
line-height: 1.2;
outline: none;
}

.ProseMirror p { margin-bottom: 1em }
.ProseMirror p { margin: 0 }

.placeholder::before {
content: var(--placeholder-text);
Expand All @@ -164,7 +163,7 @@ this is a rough fix for the first cursor position when the first paragraph is em
.ProseMirror > .ProseMirror-yjs-cursor:first-child {
margin-top: 16px;
}
.ProseMirror p:first-child, .ProseMirror h1:first-child, .ProseMirror h2:first-child, .ProseMirror h3:first-child, .ProseMirror h4:first-child, .ProseMirror h5:first-child, .ProseMirror h6:first-child {
.ProseMirror .ProseMirror h1:first-child, .ProseMirror h2:first-child, .ProseMirror h3:first-child, .ProseMirror h4:first-child, .ProseMirror h5:first-child, .ProseMirror h6:first-child {
margin-top: 16px
}
/* This gives the remote user caret. The colors are automatically overwritten*/
Expand Down

0 comments on commit 6df310a

Please sign in to comment.