Skip to content

Commit 13f0e17

Browse files
authored
[Beta] Prevent text overflow (#5028)
1 parent 7e8447a commit 13f0e17

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

beta/src/components/Layout/Page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export function Page({children, toc}: PageProps) {
4747
<React.Suspense fallback={null}>
4848
<div className="flex flex-1 w-full h-full self-stretch min-w-0">
4949
<main className="w-full self-stretch h-full mx-auto relative w-full min-w-0">
50-
<article key={asPath}>{children}</article>
50+
<article className="break-words" key={asPath}>
51+
{children}
52+
</article>
5153
<Footer />
5254
</main>
5355
</div>

beta/src/styles/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
body {
7575
padding: 0;
7676
margin: 0;
77+
overflow-x: hidden;
7778
}
7879

7980
/* Start purging... */

0 commit comments

Comments
 (0)