fix: table markdown

This commit is contained in:
Faisal Amir 2025-03-11 15:57:19 +07:00
parent 3e6bccdc9c
commit a7c3cbec55
2 changed files with 7 additions and 1 deletions

View File

@ -11,4 +11,11 @@ export const markdownComponents: Partial<Components> = {
{children}
</a>
),
table: ({ children }) => (
<div className="w-full overflow-x-auto">
<table className="w-full rounded-lg border border-[hsla(var(--app-border))]">
{children}
</table>
</div>
),
}

View File

@ -64,7 +64,6 @@
border: solid hsla(var(--app-border)) 1px;
border-radius: 8px;
overflow: auto;
display: flow;
margin-top: 16px;
margin-bottom: 16px;
}