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;
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>
);
};