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:
@ -25,6 +25,16 @@ const StyledTbody = styled.tbody<{
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
left: 39px;
|
left: 39px;
|
||||||
z-index: 5;
|
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;
|
position: sticky;
|
||||||
left: 39px;
|
left: 39px;
|
||||||
z-index: 5;
|
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) {
|
@media (max-width: ${MOBILE_VIEWPORT}px) {
|
||||||
width: 35px;
|
width: 35px;
|
||||||
max-width: 35px;
|
max-width: 35px;
|
||||||
|
|||||||
Reference in New Issue
Block a user