Added sticky table headers

Resolves #133
This commit is contained in:
Donkie
2023-10-28 10:30:28 +02:00
parent 09a308b2ce
commit e31aeebe97
3 changed files with 25 additions and 2 deletions

View File

@@ -114,12 +114,13 @@ export const VendorList: React.FC<IResourceComponentsProps> = () => {
</>
)}
>
<Table {...tableProps} dataSource={dataSource} rowKey="id">
<Table {...tableProps} sticky scroll={{ x: "max-content" }} dataSource={dataSource} rowKey="id">
{SortedColumn({
id: "id",
i18ncat: "vendor",
dataSource,
tableState,
width: 70,
})}
{SortedColumn({
id: "name",