Fix ScrollWrapper

This commit is contained in:
Charles Bochet 2023-11-10 13:24:39 +01:00
parent 9c29c436b9
commit 57cfd4db45

View File

@ -72,7 +72,6 @@ const StyledTableContainer = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
overflow: auto;
position: relative; position: relative;
`; `;
@ -116,10 +115,10 @@ export const RecordTable = ({ updateEntityMutation }: RecordTableProps) => {
}); });
return ( return (
<EntityUpdateMutationContext.Provider value={updateEntityMutation}> <ScrollWrapper>
<StyledTableWithHeader> <EntityUpdateMutationContext.Provider value={updateEntityMutation}>
<StyledTableContainer> <StyledTableWithHeader>
<ScrollWrapper> <StyledTableContainer>
<div ref={tableBodyRef}> <div ref={tableBodyRef}>
<StyledTable className="entity-table-cell"> <StyledTable className="entity-table-cell">
<RecordTableHeader /> <RecordTableHeader />
@ -131,9 +130,9 @@ export const RecordTable = ({ updateEntityMutation }: RecordTableProps) => {
onDragSelectionChange={setRowSelectedState} onDragSelectionChange={setRowSelectedState}
/> />
</div> </div>
</ScrollWrapper> </StyledTableContainer>
</StyledTableContainer> </StyledTableWithHeader>
</StyledTableWithHeader> </EntityUpdateMutationContext.Provider>
</EntityUpdateMutationContext.Provider> </ScrollWrapper>
); );
}; };