From bc55f5e9afe036c4cb5621803714d273e8980a60 Mon Sep 17 00:00:00 2001 From: Donkie Date: Mon, 30 Oct 2023 22:30:01 +0100 Subject: [PATCH] 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 --- client/src/components/spoolSelectModal.tsx | 1 + client/src/pages/filaments/list.tsx | 1 + client/src/pages/spools/list.tsx | 1 + client/src/pages/vendors/list.tsx | 1 + 4 files changed, 4 insertions(+) diff --git a/client/src/components/spoolSelectModal.tsx b/client/src/components/spoolSelectModal.tsx index 68e79cd..882b40a 100644 --- a/client/src/components/spoolSelectModal.tsx +++ b/client/src/components/spoolSelectModal.tsx @@ -125,6 +125,7 @@ const SpoolSelectModal: React.FC = ({ visible, description, onCancel, onC = () => { {...tableProps} sticky + tableLayout="auto" scroll={{ x: "max-content" }} dataSource={dataSource} rowKey="id" diff --git a/client/src/pages/spools/list.tsx b/client/src/pages/spools/list.tsx index 801b608..0beca47 100644 --- a/client/src/pages/spools/list.tsx +++ b/client/src/pages/spools/list.tsx @@ -267,6 +267,7 @@ export const SpoolList: React.FC = () => {
= () => {