From e0238e5eaa28954f0112901642ecb2d895a9808c Mon Sep 17 00:00:00 2001 From: Mathias Oppedal Heggelund <98742460+mheggelund@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:26:24 +0200 Subject: [PATCH] fix: Model table not scrollable. (#317) --- src/features/ModelTable/ModelTable.styled.ts | 11 ----------- src/features/ModelTable/ModelTable.tsx | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/features/ModelTable/ModelTable.styled.ts b/src/features/ModelTable/ModelTable.styled.ts index e81b18f..9dcf0e9 100644 --- a/src/features/ModelTable/ModelTable.styled.ts +++ b/src/features/ModelTable/ModelTable.styled.ts @@ -6,7 +6,6 @@ export const Table = styled.div` max-width: 1750px; > div { height: 100%; - overflow: hidden; > table { min-width: 90% !important; @@ -51,13 +50,3 @@ export const List = styled.div` padding-right: ${spacings.X_SMALL}; } `; - -export const Upload = styled.div` - display: flex; - flex-direction: column; - justify-content: center; - row-gap: ${spacings.X_SMALL}; - > p { - margin: 0; - } -`; diff --git a/src/features/ModelTable/ModelTable.tsx b/src/features/ModelTable/ModelTable.tsx index 48f695e..2c63432 100644 --- a/src/features/ModelTable/ModelTable.tsx +++ b/src/features/ModelTable/ModelTable.tsx @@ -107,6 +107,7 @@ export const ModelTable = () => { columnResizeMode="onChange" rows={data.data} pageSize={10} + scrollbarHorizontal columns={[ { accessorKey: 'name', header: 'Model name', id: 'name' }, {