Browse Source

[Beta] Prevent text overflow (#5028)

main
dan 2 years ago
committed by GitHub
parent
commit
13f0e17faa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      beta/src/components/Layout/Page.tsx
  2. 1
      beta/src/styles/index.css

4
beta/src/components/Layout/Page.tsx

@ -47,7 +47,9 @@ export function Page({children, toc}: PageProps) {
<React.Suspense fallback={null}> <React.Suspense fallback={null}>
<div className="flex flex-1 w-full h-full self-stretch min-w-0"> <div className="flex flex-1 w-full h-full self-stretch min-w-0">
<main className="w-full self-stretch h-full mx-auto relative w-full min-w-0"> <main className="w-full self-stretch h-full mx-auto relative w-full min-w-0">
<article key={asPath}>{children}</article> <article className="break-words" key={asPath}>
{children}
</article>
<Footer /> <Footer />
</main> </main>
</div> </div>

1
beta/src/styles/index.css

@ -74,6 +74,7 @@
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow-x: hidden;
} }
/* Start purging... */ /* Start purging... */

Loading…
Cancel
Save