Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix document layout flickering. #2514

Merged
merged 4 commits into from
Apr 23, 2024
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
2 changes: 1 addition & 1 deletion website/src/components/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Code = ({ language = 'jsx', children }) => {
return (
<Highlight {...defaultProps} language={language} code={code} theme={undefined}>
{({ className, style, tokens, getLineProps, getTokenProps }) => (
<pre className={className} style={style}>
<pre className={`${className} notranslate`} style={style}>
{tokens.map((line, i) => (
<div {...getLineProps({ line, key: i })}>
{line.map((token, key) => (
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const Main = ({ children, ...rest }) => {
return (
<main className="p-6 sm:p-8 lg:mt-8 lg:max-w-5xl lg:flex-shrink xl:p-16" {...rest}>
<main className="p-6 sm:p-8 lg:mt-8 lg:max-w-5xl lg:flex-shrink xl:p-16 grow" {...rest}>
{children}
</main>
);
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/wrapper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const Wrapper = ({ children, ...rest }) => {
return (
<div
className="relative flex flex-col lg:mx-auto lg:max-w-[1920px] lg:flex-row lg:justify-around"
className="relative flex flex-col lg:mx-auto lg:max-w-[1920px] lg:w-full lg:flex-row lg:justify-around"
{...rest}
>
{children}
Expand Down
Loading