Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions apps/website/src/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ html {
/* rehype-pretty-code — docs code blocks */
.docs-prose [data-rehype-pretty-code-figure] {
margin: 1.5rem 0;
max-width: 100%;
overflow: hidden;
}

.docs-prose [data-rehype-pretty-code-figure] pre {
Expand Down Expand Up @@ -135,15 +137,16 @@ html {
font-weight: 400;
}

.docs-prose { overflow-wrap: break-word; word-break: break-word; }
.docs-prose { overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
.docs-prose > * { max-width: 100%; }
.docs-prose h1 { font-size: 1.875rem; font-weight: 700; margin-top: 0; margin-bottom: 1rem; font-family: var(--font-garamond); }
.docs-prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; font-family: var(--font-garamond); }
.docs-prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; font-family: var(--font-garamond); }
.docs-prose p { line-height: 1.75; margin-bottom: 1.25rem; }
.docs-prose ul, .docs-prose ol { margin-bottom: 1.25rem; }
.docs-prose li { margin-bottom: 0.25rem; }

.docs-prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1.5rem 0; }
.docs-prose table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1.5rem 0; display: block; overflow-x: auto; }
.docs-prose th { text-align: left; padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: #8b8fa3; border-bottom: 1px solid rgba(0, 64, 144, 0.15); }
.docs-prose td { padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(0, 64, 144, 0.08); color: #555770; }
.docs-prose td code { font-size: 0.8em; }
4 changes: 2 additions & 2 deletions apps/website/src/components/docs/mdx/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function Pre({ children, ...props }: React.HTMLAttributes<HTMLPreElement>
};

return (
<div style={{ position: 'relative' }}>
<pre ref={ref} {...props}>{children}</pre>
<div style={{ position: 'relative', maxWidth: '100%', overflow: 'hidden' }}>
<pre ref={ref} {...props} style={{ ...((props as Record<string, unknown>).style as React.CSSProperties), overflowX: 'auto' }}>{children}</pre>
<button
onClick={copy}
aria-label={copied ? 'Copied' : 'Copy code'}
Expand Down
Loading