From c16cc480f25c6b56bbdb212844a02681d4bfe483 Mon Sep 17 00:00:00 2001 From: Claire Chabas Date: Mon, 27 Oct 2025 16:38:16 +0000 Subject: [PATCH] Fix image frame width --- .../src/components/DocumentView/Images.tsx | 56 +++++++++++-------- 1 file changed, 32 insertions(+), 24 deletions(-) diff --git a/packages/gitbook/src/components/DocumentView/Images.tsx b/packages/gitbook/src/components/DocumentView/Images.tsx index 27db314d2c..632ae75fa4 100644 --- a/packages/gitbook/src/components/DocumentView/Images.tsx +++ b/packages/gitbook/src/components/DocumentView/Images.tsx @@ -19,34 +19,42 @@ export function Images(props: BlockProps) { className={tcls( style, 'flex', - 'flex-row', - 'gap-3', + 'w-full', align === 'center' && 'justify-center', align === 'right' && 'justify-end', - align === 'left' && 'justify-start', - hasMultipleImages && ['grid', 'grid-flow-col'], - withFrame && [ - 'rounded-2xl', - 'border', - 'border-[rgb(234,235,238)]', - 'dark:border-[rgb(45,50,58)]', - 'relative', - 'overflow-hidden', - ] + align === 'left' && 'justify-start' )} > - {block.nodes.map((node: any, _i: number) => ( - - ))} +
+ {block.nodes.map((node: any, _i: number) => ( + + ))} +
); }