Skip to content

Commit

Permalink
scrollさせる
Browse files Browse the repository at this point in the history
  • Loading branch information
k35o committed Jun 23, 2023
1 parent a6b8156 commit e90c0ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export function useMDXComponents(
},
pre: ({ children, ...rest }) => {
return (
<pre {...rest} className="my-4 rounded-xl bg-slate-900 p-4">
<pre
{...rest}
className="my-4 overflow-x-auto rounded-xl bg-slate-900 p-4"
>
{children}
</pre>
);
Expand Down

0 comments on commit e90c0ed

Please sign in to comment.