Skip to content

Commit 2ce7168

Browse files
committed
tableの見た目修正
1 parent d8436e1 commit 2ce7168

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/[docs_id]/markdown.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ const components: Components = {
3434
strong: ({ node, ...props }) => (
3535
<strong className="text-primary" {...props} />
3636
),
37+
table: ({ node, ...props }) => (
38+
<div className="w-max max-w-full overflow-x-auto mx-auto my-2 rounded-lg border border-base-content/5 shadow-sm">
39+
<table className="table w-max" {...props} />
40+
</div>
41+
),
3742
hr: ({ node, ...props }) => <hr className="border-primary my-4" {...props} />,
3843
pre: ({ node, ...props }) => props.children,
3944
code: ({ node, className, ref, style, ...props }) => {

0 commit comments

Comments
 (0)