fix: Heading positioning changing between edit/read-only
fix: List items beyond #9 chopped
This commit is contained in:
@ -178,15 +178,10 @@ const StyledEditor = styled(RichMarkdownEditor)`
|
|||||||
|
|
||||||
.heading-name {
|
.heading-name {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
display: block;
|
||||||
|
position: relative;
|
||||||
/* pseudo element allows us to add spacing for fixed header */
|
top: -60px;
|
||||||
/* ref: https://stackoverflow.com/a/28824157 */
|
visibility: hidden;
|
||||||
.heading-name::before {
|
|
||||||
content: "";
|
|
||||||
display: ${(props) => (props.readOnly ? "block" : "none")};
|
|
||||||
height: 60px;
|
|
||||||
margin: -60px 0 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-name:first-child {
|
.heading-name:first-child {
|
||||||
|
@ -153,7 +153,7 @@
|
|||||||
"react-waypoint": "^9.0.2",
|
"react-waypoint": "^9.0.2",
|
||||||
"react-window": "^1.8.6",
|
"react-window": "^1.8.6",
|
||||||
"reakit": "^1.3.4",
|
"reakit": "^1.3.4",
|
||||||
"rich-markdown-editor": "^11.1.2",
|
"rich-markdown-editor": "^11.1.3",
|
||||||
"semver": "^7.3.2",
|
"semver": "^7.3.2",
|
||||||
"sequelize": "^6.3.4",
|
"sequelize": "^6.3.4",
|
||||||
"sequelize-cli": "^6.2.0",
|
"sequelize-cli": "^6.2.0",
|
||||||
|
@ -10472,10 +10472,10 @@ retry-as-promised@^3.2.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
any-promise "^1.3.0"
|
any-promise "^1.3.0"
|
||||||
|
|
||||||
rich-markdown-editor@^11.1.2:
|
rich-markdown-editor@^11.1.3:
|
||||||
version "11.1.2"
|
version "11.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-11.1.2.tgz#2c31cf23ed9e580be6706b980beeaab8ffae13c0"
|
resolved "https://registry.yarnpkg.com/rich-markdown-editor/-/rich-markdown-editor-11.1.3.tgz#19873d1489e159543691131f387882712f0c709e"
|
||||||
integrity sha512-g5j6OAl2mHgbf+m8/RbuBP3ozNHBFpFxclx0AQjfC4m53h+HcGVznBUIZaXeOPu0DqAB2Rrzt+3fVsBxoRCT7w==
|
integrity sha512-ivN/gs/M14KtrViP+MYAWn127JBTfMWgqbn5HWWUPc/el/vUbdBwquOvzjJ/kFppbdolFQMzz+xmdnoP7Zxqog==
|
||||||
dependencies:
|
dependencies:
|
||||||
copy-to-clipboard "^3.0.8"
|
copy-to-clipboard "^3.0.8"
|
||||||
lodash "^4.17.11"
|
lodash "^4.17.11"
|
||||||
|
Reference in New Issue
Block a user