mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-27 11:03:40 +03:00
Add box shadow on frozen first column on table (#6250)
<img width="1512" alt="image" src="https://github.com/user-attachments/assets/e8b39269-0c3d-4a90-9891-3f772c330165"> <img width="1512" alt="image" src="https://github.com/user-attachments/assets/9f97e166-dfa8-44b2-86a4-db06bc7962b7">
This commit is contained in:
parent
2cd624a5ab
commit
753095dfa5
@ -25,6 +25,16 @@ const StyledTbody = styled.tbody<{
|
||||
position: sticky;
|
||||
left: 39px;
|
||||
z-index: 5;
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
height: calc(100% + 2px);
|
||||
width: 4px;
|
||||
right: 0px;
|
||||
box-shadow: ${({ theme }) => theme.boxShadow.light};
|
||||
clip-path: inset(0px -4px 0px 0px);
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -39,6 +39,16 @@ const StyledTableHead = styled.thead<{
|
||||
position: sticky;
|
||||
left: 39px;
|
||||
z-index: 5;
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
height: calc(100% + 2px);
|
||||
width: 4px;
|
||||
right: 0px;
|
||||
box-shadow: ${({ theme }) => theme.boxShadow.light};
|
||||
clip-path: inset(0px -4px 0px 0px);
|
||||
}
|
||||
@media (max-width: ${MOBILE_VIEWPORT}px) {
|
||||
width: 35px;
|
||||
max-width: 35px;
|
||||
|
Loading…
Reference in New Issue
Block a user