diff --git a/portal-template/src/components/example-layout.tsx b/portal-template/src/components/example-layout.tsx index aa3c0a31..91135976 100644 --- a/portal-template/src/components/example-layout.tsx +++ b/portal-template/src/components/example-layout.tsx @@ -21,6 +21,9 @@ interface LayoutSlots { const SelectionContext = createContext(undefined); +/** Fumadocs keeps the example column no taller than the window: each box down to the code passes that height on. */ +export const SHRINKS_WITH_COLUMN = 'flex min-h-0 flex-col'; + // "Example Response" copies through a button of Fumadocs' own in the card's header, which takes no callback. const reportResponseCopy = (event: MouseEvent) => { if (event.target instanceof Element && event.target.closest('button[aria-live]') !== null) reportCodeCopy('json'); @@ -66,7 +69,7 @@ function ExampleLayout({ selector, usageTabs, responseTabs }: Readonly -
+
{selector === null ? null : } {usageTabs}
@@ -92,7 +95,7 @@ function ExampleSelector() { })); return (