The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix max width on article tag
Terry Sutton1ad916d08f93
diff --git a/apps/docs/components/CodeBlock/CodeBlock.tsx b/apps/docs/components/CodeBlock/CodeBlock.tsxindex 463a6062c36..1ca6b128c12 100644--- a/apps/docs/components/CodeBlock/CodeBlock.tsx+++ b/apps/docs/components/CodeBlock/CodeBlock.tsx@@ -62,7 +62,7 @@ const CodeBlock: FC<Props> = ({const showLineNumbers = hideLineNumbers || lang !== 'bash'return (- <div className="relative my-2">+ <div className="relative my-2 max-w-[90vw] md:max-w-none overflow-auto">{title && (<div className="rounded-t-md bg-scale-300 py-2 px-4 border-b border-scale-500 text-blue-1100 font-sans">{title.replace(/%20/g, ' ')}@@ -125,7 +125,7 @@ const CodeBlock: FC<Props> = ({icon={copied ? <IconCheck /> : <IconCopy />}onClick={() => handleCopy()}>- {copied ? 'Copied' : 'Copy'}+ {copied ? 'Copied' : ''}</Button></CopyToClipboard></div>diff --git a/apps/docs/layouts/Default.tsx b/apps/docs/layouts/Default.tsxindex 39ee0f54d7a..70d1817e9b6 100644--- a/apps/docs/layouts/Default.tsx+++ b/apps/docs/layouts/Default.tsx@@ -52,7 +52,7 @@ const Layout: FC<Props> = ({ meta, children, toc, menuItems, currentPage }) => {: 'col-span-12 md:col-span-9'} py-2 md:py-4 px-2 md:px-8`}>- <article className="prose dark:prose-dark dark:bg-scale-200 width-full mt-8">+ <article className="prose dark:prose-dark dark:bg-scale-200 width-full mt-8 max-w-none">{children}</article></div>diff --git a/apps/docs/styles/main.scss b/apps/docs/styles/main.scssindex a959476082a..d005fffb067 100644--- a/apps/docs/styles/main.scss+++ b/apps/docs/styles/main.scss@@ -67,7 +67,6 @@ article h1 {.width-full {width: 100% !important;- max-width: max-content !important;}.p:not(.prose *):not(.overwrite) {@@ -221,7 +220,9 @@ a:has(code) {}pre code {+ @media screen and (max-width: 375px) {+ }@media screen and (max-width: 768px) {- white-space: normal !important;+ // white-space: normal !important;}}