fix: added overflow on dataframe output (#7197)

* Increase min table column width

* Add overflow to table on markdown

* Added overflow hidden
This commit is contained in:
Lucas Oliveira 2025-03-21 14:18:15 -03:00 committed by GitHub
commit 1d9ca7b599
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View file

@ -55,6 +55,15 @@ export const MarkdownField = ({
pre({ node, ...props }) {
return <>{props.children}</>;
},
table: ({ node, ...props }) => {
return (
<div className="max-w-full overflow-hidden rounded-md border bg-muted">
<div className="max-h-[600px] w-full overflow-auto p-4">
<table className="!my-0 w-full">{props.children}</table>
</div>
</div>
);
},
code: ({ node, inline, className, children, ...props }) => {
let content = children as string;
if (

View file

@ -18,8 +18,8 @@ body {
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
font-family:
source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}
pre {
font-family: inherit;
@ -288,7 +288,7 @@ input[type="search"]::-webkit-search-cancel-button {
}
.markdown td {
min-width: 78px;
min-width: 100px;
}
.jse-group-button.jse-last,