fix: columns overlapping with checkbox column when horizantally scrolling (#3705)
This commit is contained in:
@ -22,6 +22,10 @@ const StyledPlaceholder = styled.td`
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const StyledTd = styled.td`
|
||||||
|
background-color: ${({ theme }) => theme.background.primary};
|
||||||
|
`;
|
||||||
|
|
||||||
export const RecordTableRow = ({ recordId, rowIndex }: RecordTableRowProps) => {
|
export const RecordTableRow = ({ recordId, rowIndex }: RecordTableRowProps) => {
|
||||||
const { getVisibleTableColumnsSelector, isRowSelectedFamilyState } =
|
const { getVisibleTableColumnsSelector, isRowSelectedFamilyState } =
|
||||||
useRecordTableStates();
|
useRecordTableStates();
|
||||||
@ -54,9 +58,9 @@ export const RecordTableRow = ({ recordId, rowIndex }: RecordTableRowProps) => {
|
|||||||
>
|
>
|
||||||
{inView ? (
|
{inView ? (
|
||||||
<>
|
<>
|
||||||
<td>
|
<StyledTd>
|
||||||
<CheckboxCell />
|
<CheckboxCell />
|
||||||
</td>
|
</StyledTd>
|
||||||
{[...visibleTableColumns]
|
{[...visibleTableColumns]
|
||||||
.sort((columnA, columnB) => columnA.position - columnB.position)
|
.sort((columnA, columnB) => columnA.position - columnB.position)
|
||||||
.map((column, columnIndex) => {
|
.map((column, columnIndex) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user