diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx index d5491fb71..6aa69e108 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTabV2.tsx @@ -447,6 +447,9 @@ export interface IDocumentsTabComponentProps { // Extend DocumentId to include fields displayed in the table type ExtendedDocumentId = DocumentId & { tableFields?: DocumentsTableComponentItem }; +// This is based on some heuristics +const calculateOffset = (columnNumber: number): number => columnNumber * 13.71428571 - 46; + // Export to expose to unit tests export const DocumentsTabComponent: React.FunctionComponent = ({ isPreferredApiMongoDB, @@ -1901,7 +1904,7 @@ export const DocumentsTabComponent: React.FunctionComponent diff --git a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.tsx b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.tsx index b7ce7afe3..32aa19954 100644 --- a/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.tsx +++ b/src/Explorer/Tabs/DocumentsTabV2/DocumentsTableComponent.tsx @@ -147,7 +147,7 @@ export const DocumentsTableComponent: React.FC = aria-label="Select column" size="small" icon={} - style={{ position: "absolute", right: -6 }} + style={{ position: "absolute", right: 0 }} />