Skip to content

Commit

Permalink
[md tables][s]: add scroll to overflowed tables
Browse files Browse the repository at this point in the history
  • Loading branch information
olayway committed Nov 1, 2023
1 parent efa082a commit a80db37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/MdxPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import layouts from "@/layouts";
const components = {
mermaid: Mermaid,
pre: Pre,
table: (props) => (
<div className="overflow-x-auto">
<table {...props} />
</div>
),
};

export default function MdxPage({ source, frontMatter }) {
Expand Down

0 comments on commit a80db37

Please sign in to comment.