Skip to content

The open alternative to Salesforce, designed for AI.

Add box shadow on frozen first column on table (#6250)

Charles Bochet753095dfa51a
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyDroppable.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyDroppable.tsx
index ac471112d84..bd062d3abb4 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyDroppable.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-body/components/RecordTableBodyDroppable.tsx
@@ -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);
+ }
}
}
`;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx
index 2804fcc6e4f..34009d15421 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-header/components/RecordTableHeader.tsx
@@ -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;