Skip to content

Commit 7b8cbc5

Browse files
committed
fix: Document meta unclickable when first item in a document is a heading
1 parent f501da9 commit 7b8cbc5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/components/DocumentMetaWithViews.js

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ function DocumentMetaWithViews({ to, isDraft, document }: Props) {
3535
const Meta = styled(DocumentMeta)`
3636
margin: -12px 0 2em 0;
3737
font-size: 14px;
38+
position: relative;
39+
z-index: 1;
3840
3941
a {
4042
color: inherit;

app/components/Editor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ const StyledEditor = styled(RichMarkdownEditor)`
181181
.heading-name::before {
182182
content: "";
183183
display: ${(props) => (props.readOnly ? "block" : "none")};
184-
height: 72px;
185-
margin: -72px 0 0;
184+
height: 60px;
185+
margin: -60px 0 0;
186186
}
187187
188188
.heading-name:first-child {

0 commit comments

Comments
 (0)