Fix heuristic for size update

This commit is contained in:
Laurent Nguyen 2024-07-11 10:04:21 +02:00
parent 5d59c47979
commit ea2ab19518

View File

@ -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<IDocumentsTabComponentProps> = ({