Skip to content

The open alternative to Salesforce, designed for AI.

fix: columns overlapping with checkbox column when horizantally scrolling (#3705)

Anoop Pf6e9456ef6c3
diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRow.tsx b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRow.tsx
index 9fd2b1dc9f0..fa0c7cb5e99 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRow.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/components/RecordTableRow.tsx
@@ -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) => {