fix: correctly handle overflowing content

This commit is contained in:
iCrawl
2022-08-15 18:33:43 +02:00
parent 5dc7946df2
commit 35e79b389d
4 changed files with 16 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
import { Box } from '@mantine/core';
import { HyperlinkedText } from './HyperlinkedText';
import { Table } from './Table';
import type { ParameterDocumentation } from '~/util/parse.server';
@@ -15,5 +16,9 @@ export function ParameterTable({ data }: { data: ParameterDocumentation[] }) {
Type: 'font-mono',
};
return <Table columns={['Name', 'Type', 'Optional', 'Description']} rows={rows} columnStyles={columnStyles} />;
return (
<Box className="overflow-x-auto">
<Table columns={['Name', 'Type', 'Optional', 'Description']} rows={rows} columnStyles={columnStyles} />
</Box>
);
}