fix: Heading positioning changing between edit/read-only

fix: List items beyond #9 chopped
This commit is contained in:
Tom Moor
2021-01-15 08:50:19 -08:00
parent 1af00a0b3d
commit 1fd2ec31fd
3 changed files with 9 additions and 14 deletions

View File

@ -178,15 +178,10 @@ const StyledEditor = styled(RichMarkdownEditor)`
.heading-name {
pointer-events: none;
}
/* pseudo element allows us to add spacing for fixed header */
/* ref: https://stackoverflow.com/a/28824157 */
.heading-name::before {
content: "";
display: ${(props) => (props.readOnly ? "block" : "none")};
height: 60px;
margin: -60px 0 0;
display: block;
position: relative;
top: -60px;
visibility: hidden;
}
.heading-name:first-child {