diff --git a/src/components/docs/markdown-viewer.tsx b/src/components/docs/markdown-viewer.tsx index 3c53cb9..e91e2e6 100644 --- a/src/components/docs/markdown-viewer.tsx +++ b/src/components/docs/markdown-viewer.tsx @@ -2,6 +2,19 @@ import ReactMarkdown from "react-markdown"; import remarkGfm from "remark-gfm"; import { cn } from "@/lib/utils"; +// GFM tables (the config reference's Field/Type/Default/Notes tables) are wider than a phone +// screen and don't wrap - without their own scroll container the table forces the whole page +// to scroll horizontally instead. The typography plugin's table styles still apply to `table` +// here (its selectors match any descendant, not just direct children of `.prose`), so this +// wrapper only adds the scroll boundary. +function Table(props: React.ComponentProps<"table">) { + return ( +