diff --git a/packages/gitbook/src/components/Adaptive/AdaptivePaneHeader.tsx b/packages/gitbook/src/components/Adaptive/AdaptivePaneHeader.tsx
index 46b67bd61..93338b152 100644
--- a/packages/gitbook/src/components/Adaptive/AdaptivePaneHeader.tsx
+++ b/packages/gitbook/src/components/Adaptive/AdaptivePaneHeader.tsx
@@ -21,6 +21,7 @@ export function AdaptivePaneHeader() {
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
+ transition={{ duration: 0.3 }}
className="text-tint-subtle text-xs"
>
{loading ? 'Basing on your context...' : 'Based on your context'}
diff --git a/packages/gitbook/src/components/Adaptive/server-actions/streamPageSummary.ts b/packages/gitbook/src/components/Adaptive/server-actions/streamPageSummary.ts
index a2ee58afe..3f64bb00e 100644
--- a/packages/gitbook/src/components/Adaptive/server-actions/streamPageSummary.ts
+++ b/packages/gitbook/src/components/Adaptive/server-actions/streamPageSummary.ts
@@ -40,7 +40,7 @@ export async function* streamPageSummary({
},
{
schema: z.object({
- pageSummary: z
+ keyFacts: z
.string()
.describe(
'A collection of key facts from the page that together form a comprehensive summary. Keep it under 30 words.'
@@ -201,13 +201,13 @@ export async function* streamPageSummary({
]);
for await (const value of stream) {
- const pageSummary = value.pageSummary;
+ const keyFacts = value.keyFacts;
const bigPicture = value.bigPicture;
- if (!pageSummary) continue;
+ if (!keyFacts) continue;
yield {
- pageSummary,
+ keyFacts,
bigPicture,
};
}
diff --git a/packages/gitbook/src/components/Header/Header.tsx b/packages/gitbook/src/components/Header/Header.tsx
index 35c2583c4..7a27e1eb2 100644
--- a/packages/gitbook/src/components/Header/Header.tsx
+++ b/packages/gitbook/src/components/Header/Header.tsx
@@ -106,12 +106,16 @@ export function Header(props: { context: GitBookSiteContext; withTopHeader?: boo
'lg:max-w-lg',
'lg:ml-[max(calc((100%-18rem-48rem-3rem)/2),1.5rem)]', // container (100%) - sidebar (18rem) - content (48rem) - margin (3rem)
'xl:ml-[max(calc((100%-18rem-48rem-14rem-3rem)/2),1.5rem)]', // container (100%) - sidebar (18rem) - content (48rem) - outline (14rem) - margin (3rem)
+ 'adaptive-pane:xl:ml-[max(calc((100%-18rem-48rem-18rem-3rem)/2),1.5rem)]',
'page-no-toc:lg:ml-[max(calc((100%-18rem-48rem-18rem-3rem)/2),0rem)]',
'page-full-width:lg:ml-[max(calc((100%-18rem-103rem-3rem)/2),1.5rem)]',
'page-full-width:2xl:ml-[max(calc((100%-18rem-96rem-14rem+3rem)/2),1.5rem)]',
+ '[body.adaptive-pane:has(.page-full-width)_&]:2xl:ml-[max(calc((100%-18rem-96rem-18rem+3rem)/2),1.5rem)]',
'md:mr-auto',
'order-last',
'md:order-[unset]',
+ 'transition-[margin-left]',
+ 'duration-300',
]
: ['order-last']
)}
diff --git a/packages/gitbook/src/components/PageAside/PageAside.tsx b/packages/gitbook/src/components/PageAside/PageAside.tsx
index a5bf845dd..4a502e7c2 100644
--- a/packages/gitbook/src/components/PageAside/PageAside.tsx
+++ b/packages/gitbook/src/components/PageAside/PageAside.tsx
@@ -35,10 +35,11 @@ export function PageAside(props: {