Skip to content

The open alternative to Salesforce, designed for AI.

Fix ellipsis overflow causing edit icon to be hidden on links (#5071)

Devb634057fdd0b
diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx
index 49150429ba6..e3db9d7100f 100644
--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx
@@ -39,6 +39,7 @@ const StyledLabelAndIconContainer = styled.div`
const StyledValueContainer = styled.div`
display: flex;
+ min-width: 0;
`;
const StyledLabelContainer = styled.div<{ width?: number }>`
diff --git a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx
index 1ca7314595b..32a2258c7d5 100644
--- a/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/link/components/RoundedLink.tsx
@@ -21,12 +21,17 @@ const StyledClickable = styled.div`
}
`;
+const StyledChip = styled(Chip)`
+ box-sizing: border-box;
+ padding: ${({ theme }) => theme.spacing(2)};
+`;
+
export const RoundedLink = ({ children, href, onClick }: RoundedLinkProps) => (
<div>
{children !== '' ? (
<StyledClickable>
<ReactLink target="_blank" to={href} onClick={onClick}>
- <Chip
+ <StyledChip
label={`${children}`}
variant={ChipVariant.Rounded}
size={ChipSize.Small}