mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-28 01:09:11 +03:00
fix: columns overlapping with checkbox column when horizantally scrolling (#3705)
This commit is contained in:
parent
edf62f3a3b
commit
f6e9456ef6
@ -22,6 +22,10 @@ const StyledPlaceholder = styled.td`
|
||||
height: 30px;
|
||||
`;
|
||||
|
||||
const StyledTd = styled.td`
|
||||
background-color: ${({ theme }) => theme.background.primary};
|
||||
`;
|
||||
|
||||
export const RecordTableRow = ({ recordId, rowIndex }: RecordTableRowProps) => {
|
||||
const { getVisibleTableColumnsSelector, isRowSelectedFamilyState } =
|
||||
useRecordTableStates();
|
||||
@ -54,9 +58,9 @@ export const RecordTableRow = ({ recordId, rowIndex }: RecordTableRowProps) => {
|
||||
>
|
||||
{inView ? (
|
||||
<>
|
||||
<td>
|
||||
<StyledTd>
|
||||
<CheckboxCell />
|
||||
</td>
|
||||
</StyledTd>
|
||||
{[...visibleTableColumns]
|
||||
.sort((columnA, columnB) => columnA.position - columnB.position)
|
||||
.map((column, columnIndex) => {
|
||||
|
Loading…
Reference in New Issue
Block a user