We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46fa9d9 commit 511f1cfCopy full SHA for 511f1cf
.changeset/seven-jokes-vanish.md
@@ -0,0 +1,5 @@
1
+---
2
+'gitbook': patch
3
4
+
5
+Add scroll margin to Expandable
packages/gitbook/src/components/DocumentView/Expandable/Expandable.tsx
@@ -25,7 +25,11 @@ export function Expandable(props: BlockProps<DocumentBlockExpandable>) {
25
id = context.getId ? context.getId(id) : id;
26
27
return (
28
- <Details id={id} open={context.mode === 'print'} className={style}>
+ <Details
29
+ id={id}
30
+ open={context.mode === 'print'}
31
+ className={tcls('scroll-mt-(--content-scroll-margin)', style)}
32
+ >
33
<summary
34
className={tcls(
35
'cursor-pointer',
0 commit comments