fix: Document meta unclickable when first item in a document is a heading
This commit is contained in:
@@ -35,6 +35,8 @@ function DocumentMetaWithViews({ to, isDraft, document }: Props) {
|
|||||||
const Meta = styled(DocumentMeta)`
|
const Meta = styled(DocumentMeta)`
|
||||||
margin: -12px 0 2em 0;
|
margin: -12px 0 2em 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|||||||
@@ -181,8 +181,8 @@ const StyledEditor = styled(RichMarkdownEditor)`
|
|||||||
.heading-name::before {
|
.heading-name::before {
|
||||||
content: "";
|
content: "";
|
||||||
display: ${(props) => (props.readOnly ? "block" : "none")};
|
display: ${(props) => (props.readOnly ? "block" : "none")};
|
||||||
height: 72px;
|
height: 60px;
|
||||||
margin: -72px 0 0;
|
margin: -60px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-name:first-child {
|
.heading-name:first-child {
|
||||||
|
|||||||
Reference in New Issue
Block a user