From 9a82fb980b8a36d3943cc6f7a347217d022f56aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20M?= Date: Thu, 16 Jan 2025 11:20:39 +0100 Subject: [PATCH] fix: record group chevron alignment (#9661) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Screenshot 2025-01-16 at 10 23 07 AM Screenshot 2025-01-16 at 10 22 37 AM Fix Chevron alignment and CheckBox alignment --- .../record-table-cell/components/RecordTableTd.tsx | 5 ++--- .../components/RecordTableRecordGroupSection.tsx | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableTd.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableTd.tsx index 5cddb1d8d..1c95f0287 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableTd.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableTd.tsx @@ -24,9 +24,8 @@ const StyledTd = styled.td<{ ${({ borderColor, hasBottomBorder }) => hasBottomBorder ? borderColor : 'transparent'}; color: ${({ fontColor }) => fontColor}; - border-right: 1px solid - ${({ borderColor, hasRightBorder }) => - hasRightBorder ? borderColor : 'transparent'}; + border-right: ${({ borderColor, hasRightBorder }) => + hasRightBorder ? `1px solid ${borderColor}` : 'none'}; padding: 0; transition: 0.3s ease; diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx index 1c3bc7c76..7503b4a50 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx @@ -32,6 +32,11 @@ const StyledChevronContainer = styled(RecordTableTd)` vertical-align: middle; `; +const StyledAnimatedLightIconButton = styled(AnimatedLightIconButton)` + display: block; + margin: auto; +`; + const StyledTotalRow = styled.span` color: ${({ theme }) => theme.font.color.tertiary}; margin-left: ${({ theme }) => theme.spacing(2)}; @@ -88,7 +93,7 @@ export const RecordTableRecordGroupSection = () => { -