Skip to content

The open alternative to Salesforce, designed for AI.

Fix ScrollWrapper

Charles Bochet57cfd4db45f5
diff --git a/front/src/modules/ui/object/record-table/components/RecordTable.tsx b/front/src/modules/ui/object/record-table/components/RecordTable.tsx
index ae55c625f7f..43c675140ea 100644
--- a/front/src/modules/ui/object/record-table/components/RecordTable.tsx
+++ b/front/src/modules/ui/object/record-table/components/RecordTable.tsx
@@ -72,7 +72,6 @@ const StyledTableContainer = styled.div`
display: flex;
flex-direction: column;
height: 100%;
- overflow: auto;
position: relative;
`;
@@ -116,10 +115,10 @@ export const RecordTable = ({ updateEntityMutation }: RecordTableProps) => {
});
return (
- <EntityUpdateMutationContext.Provider value={updateEntityMutation}>
- <StyledTableWithHeader>
- <StyledTableContainer>
- <ScrollWrapper>
+ <ScrollWrapper>
+ <EntityUpdateMutationContext.Provider value={updateEntityMutation}>
+ <StyledTableWithHeader>
+ <StyledTableContainer>
<div ref={tableBodyRef}>
<StyledTable className="entity-table-cell">
<RecordTableHeader />
@@ -131,9 +130,9 @@ export const RecordTable = ({ updateEntityMutation }: RecordTableProps) => {
onDragSelectionChange={setRowSelectedState}
/>
</div>
- </ScrollWrapper>
- </StyledTableContainer>
- </StyledTableWithHeader>
- </EntityUpdateMutationContext.Provider>
+ </StyledTableContainer>
+ </StyledTableWithHeader>
+ </EntityUpdateMutationContext.Provider>
+ </ScrollWrapper>
);
};