Skip to content

Commit 7df8b1e

Browse files
committed
fix(site): break long code snippets
1 parent 12330f4 commit 7df8b1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

frontend/packages/components/src/mdx/code.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ export const code = ({
180180
}
181181
return (
182182
<code
183+
className="whitespace-pre-wrap break-all"
183184
// biome-ignore lint/security/noDangerouslySetInnerHtml: it's generated from markdown
184185
dangerouslySetInnerHTML={{ __html: escapeHTML(children as string) }}
185186
/>

site/src/app/not-found.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Button } from "@/components/Button";
22
import { Footer } from "@/components/Footer";
3-
import { Header } from "@/components/Header";
43
import { Icon, faBlockQuestion } from "@rivet-gg/icons";
54
import "@/styles/tailwind.css";
65
import "@/styles/fonts.css";
6+
import { FancyHeader } from "@/components/v2/FancyHeader";
77

88
function PageNotFound() {
99
return (
10-
<div>
11-
<Header />
10+
<>
11+
<FancyHeader />
1212
<div className="relative pt-14">
1313
<div className="relative flex min-h-[80vh] w-full items-center justify-center text-center">
1414
<div className="transition-opacity">
@@ -26,7 +26,7 @@ function PageNotFound() {
2626
</div>
2727
</div>
2828
<Footer />
29-
</div>
29+
</>
3030
);
3131
}
3232

0 commit comments

Comments
 (0)