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 {

View File

@ -153,7 +153,7 @@
"react-waypoint": "^9.0.2",
"react-window": "^1.8.6",
"reakit": "^1.3.4",
"rich-markdown-editor": "^11.1.2",
"rich-markdown-editor": "^11.1.3",
"semver": "^7.3.2",
"sequelize": "^6.3.4",
"sequelize-cli": "^6.2.0",

View File

@ -10472,10 +10472,10 @@ retry-as-promised@^3.2.0:
dependencies:
any-promise "^1.3.0"
rich-markdown-editor@^11.1.2:
version "11.1.2"
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-11.1.2.tgz#2c31cf23ed9e580be6706b980beeaab8ffae13c0"
integrity sha512-g5j6OAl2mHgbf+m8/RbuBP3ozNHBFpFxclx0AQjfC4m53h+HcGVznBUIZaXeOPu0DqAB2Rrzt+3fVsBxoRCT7w==
rich-markdown-editor@^11.1.3:
version "11.1.3"
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-11.1.3.tgz#19873d1489e159543691131f387882712f0c709e"
integrity sha512-ivN/gs/M14KtrViP+MYAWn127JBTfMWgqbn5HWWUPc/el/vUbdBwquOvzjJ/kFppbdolFQMzz+xmdnoP7Zxqog==
dependencies:
copy-to-clipboard "^3.0.8"
lodash "^4.17.11"