Skip to content

Commit 9108c56

Browse files
authored
Fix an issue where ContentKit webframes weren't sized properly (#2978)
1 parent b011ea0 commit 9108c56

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/serious-peas-train.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@gitbook/react-contentkit": patch
3+
---
4+
5+
Fix an issue where contentkit webframes weren't resized properly

packages/react-contentkit/src/ElementWebframe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function ElementWebframe(props: ContentKitClientElementProps<ContentKitWe
185185
: { width: '100%' }),
186186

187187
maxWidth: '100%',
188-
height: Math.max(size.height || 0, 32),
188+
height: size.height ? Math.max(size.height, 32) : '100%',
189189
border: 'none',
190190
}}
191191
/>

0 commit comments

Comments
 (0)