Skip to content

Commit 015615d

Browse files
authored
fix: defaultWidth/fullWidth options in images (#3274)
1 parent 0f867e5 commit 015615d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/breezy-falcons-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+
Respect fullWidth and defaultWidth for images

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function Images(props: BlockProps<DocumentBlockImages>) {
2929
align === 'center' && 'justify-center',
3030
align === 'right' && 'justify-end',
3131
align === 'left' && 'justify-start',
32-
isMultipleImages && ['grid', 'grid-flow-col', 'max-w-none']
32+
isMultipleImages && ['grid', 'grid-flow-col']
3333
)}
3434
>
3535
{block.nodes.map((node: any, _i: number) => (

0 commit comments

Comments
 (0)