From ea2ab19518ad5f29c0387bf8529dedb6d4b610a3 Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Thu, 11 Jul 2024 10:04:21 +0200 Subject: [PATCH] Fix heuristic for size update --- src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index 6aa69e108..c4f2520cd 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -448,7 +448,7 @@ export interface IDocumentsTabComponentProps { type ExtendedDocumentId = DocumentId & { tableFields?: DocumentsTableComponentItem }; // This is based on some heuristics -const calculateOffset = (columnNumber: number): number => columnNumber * 13.71428571 - 46; +const calculateOffset = (columnNumber: number): number => columnNumber * 16 - 59; // Export to expose to unit tests export const DocumentsTabComponent: React.FunctionComponent = ({