Fixed table layout being fixed by the new sticky headers

This caused the columns to not get auto-sized, which broke it especially bad on iOS
This commit is contained in:
Donkie
2023-10-30 22:30:01 +01:00
parent 2c8d3602f0
commit bc55f5e9af
4 changed files with 4 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ const SpoolSelectModal: React.FC<Props> = ({ visible, description, onCancel, onC
<Table <Table
{...tableProps} {...tableProps}
rowKey="id" rowKey="id"
tableLayout="auto"
dataSource={dataSource} dataSource={dataSource}
pagination={false} pagination={false}
scroll={{ y: 200 }} scroll={{ y: 200 }}

View File

@@ -189,6 +189,7 @@ export const FilamentList: React.FC<IResourceComponentsProps> = () => {
<Table<IFilamentCollapsed> <Table<IFilamentCollapsed>
{...tableProps} {...tableProps}
sticky sticky
tableLayout="auto"
scroll={{ x: "max-content" }} scroll={{ x: "max-content" }}
dataSource={dataSource} dataSource={dataSource}
rowKey="id" rowKey="id"

View File

@@ -267,6 +267,7 @@ export const SpoolList: React.FC<IResourceComponentsProps> = () => {
<Table <Table
{...tableProps} {...tableProps}
sticky sticky
tableLayout="auto"
scroll={{ x: "max-content" }} scroll={{ x: "max-content" }}
dataSource={dataSource} dataSource={dataSource}
rowKey="id" rowKey="id"

View File

@@ -126,6 +126,7 @@ export const VendorList: React.FC<IResourceComponentsProps> = () => {
<Table <Table
{...tableProps} {...tableProps}
sticky sticky
tableLayout="auto"
scroll={{ x: "max-content" }} scroll={{ x: "max-content" }}
dataSource={dataSource} dataSource={dataSource}
rowKey="id" rowKey="id"