fix: icon visibility on horizontal scroll #6304 (#6315)

https://github.com/user-attachments/assets/5f8741ad-bdab-4ef3-8741-dacbd2381ea3

fix: When scrolling horizontally, table header goes behind the first
frozen column #6304
This commit is contained in:
Antar Das
2024-07-19 22:00:31 +06:00
committed by GitHub
parent a374922902
commit a86cc5cb9c

View File

@ -1,10 +1,15 @@
import { styled } from '@linaria/react';
import { useContext } from 'react';
import { ThemeContext } from 'twenty-ui';
const StyledTh = styled.th`
const StyledTh = styled.th<{ backgroundColor: string;}>`
border-bottom: none;
border-top: none;
background: ${({ backgroundColor }) => backgroundColor};
`;
export const RecordTableHeaderDragDropColumn = () => {
return <StyledTh></StyledTh>;
const { theme } = useContext(ThemeContext);
return <StyledTh backgroundColor={theme.background.primary}></StyledTh>;
};