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 6b9f6b5 commit d024658Copy full SHA for d024658
.changeset/purple-poems-melt.md
@@ -0,0 +1,5 @@
1
+---
2
+'gitbook': patch
3
4
+
5
+Prevent page breaks inside blocks when printing
packages/gitbook/src/components/DocumentView/Blocks.tsx
@@ -85,7 +85,7 @@ export function UnwrappedBlocks<TBlock extends DocumentBlock>(props: UnwrappedBl
85
key={node.key || `${node.type}-${index}`}
86
block={node}
87
style={[
88
- 'mx-auto page-width-wide:mx-0 w-full decoration-primary/6',
+ 'mx-auto page-width-wide:mx-0 w-full decoration-primary/6 print:break-inside-avoid',
89
node.data && 'fullWidth' in node.data && node.data.fullWidth
90
? 'max-w-screen-2xl'
91
: 'max-w-3xl',
0 commit comments