Skip to content

The open alternative to Salesforce, designed for AI.

fix(twenty-front): enable text selection for display-mode fields (#21068)

dev-kp-elopere1a00ea42f69
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 60a7639b44c..62b08f637b3 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
@@ -45,6 +45,7 @@ const StyledValueContainer = styled.div<{ readonly: boolean }>`
display: flex;
min-width: 0;
position: relative;
+ user-select: text;
width: 100%;
`;
diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellHoveredPortalContent.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellHoveredPortalContent.tsx
index a19274bc58e..eae8e62fecd 100644
--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellHoveredPortalContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellHoveredPortalContent.tsx
@@ -21,7 +21,7 @@ const StyledInlineCellBaseContainer = styled.div<{ readonly: boolean }>`
display: flex;
gap: ${themeCssVariables.spacing[1]};
height: fit-content;
- user-select: none;
+ user-select: text;
width: 100%;
`;