diff --git a/.changeset/silly-ducks-kiss.md b/.changeset/silly-ducks-kiss.md new file mode 100644 index 000000000..5cb015ed6 --- /dev/null +++ b/.changeset/silly-ducks-kiss.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Improve wide page width layout diff --git a/packages/gitbook/src/components/DocumentView/Blocks.tsx b/packages/gitbook/src/components/DocumentView/Blocks.tsx index 04ae481aa..6d1f408cd 100644 --- a/packages/gitbook/src/components/DocumentView/Blocks.tsx +++ b/packages/gitbook/src/components/DocumentView/Blocks.tsx @@ -89,7 +89,7 @@ export function UnwrappedBlocks(props: UnwrappedBl node.data && 'fullWidth' in node.data && node.data.fullWidth ? 'max-w-screen-xl' : 'max-w-3xl', - FULL_WIDTH_BLOCKS.includes(node.type) && 'page-width-wide:max-w-screen-2xl', + FULL_WIDTH_BLOCKS.includes(node.type) && 'page-width-wide:max-w-full', blockStyle, ]} isEstimatedOffscreen={isOffscreen} diff --git a/packages/gitbook/src/components/PageAside/PageAside.tsx b/packages/gitbook/src/components/PageAside/PageAside.tsx index bc0570c41..6b14991f9 100644 --- a/packages/gitbook/src/components/PageAside/PageAside.tsx +++ b/packages/gitbook/src/components/PageAside/PageAside.tsx @@ -35,6 +35,7 @@ export function PageAside(props: {