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:
@ -1,10 +1,15 @@
|
|||||||
import { styled } from '@linaria/react';
|
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-bottom: none;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
background: ${({ backgroundColor }) => backgroundColor};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const RecordTableHeaderDragDropColumn = () => {
|
export const RecordTableHeaderDragDropColumn = () => {
|
||||||
return <StyledTh></StyledTh>;
|
const { theme } = useContext(ThemeContext);
|
||||||
|
|
||||||
|
return <StyledTh backgroundColor={theme.background.primary}></StyledTh>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user