Skip to content

Commit ff05e20

Browse files
authored
Improvements to inline images in headings (#2829)
1 parent 53de5b1 commit ff05e20

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.changeset/lazy-seas-drop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Improvements to inline images in headings

packages/gitbook/src/components/DocumentView/Heading.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,16 @@ export function Heading(props: BlockProps<DocumentBlockHeading>) {
6464
/>
6565
</a>
6666
</div>
67-
<div className={tcls('grid-area-1-1', 'z-[1]', textStyle.marginTop)}>
67+
<div
68+
className={tcls(
69+
'grid-area-1-1',
70+
'z-[1]',
71+
'justify-self-start',
72+
'text-left',
73+
textStyle.lineHeight,
74+
textStyle.marginTop,
75+
)}
76+
>
6877
<Inlines {...rest} context={context} nodes={block.nodes} ancestorInlines={[]} />
6978
</div>
7079
</Tag>

0 commit comments

Comments
 (0)