From 6898c1e4d8133e5321509d7d5cedcc28f190ed2f Mon Sep 17 00:00:00 2001 From: Fabio Nettis Date: Wed, 15 May 2024 16:26:14 +0200 Subject: [PATCH] fix: resolve issues with edit input offset (#5426) ## Description This PR fixes a display issue when editing the company name or the name of a person where the edit input would be offset to the left instead of being in the middle. ![image](https://github.com/twentyhq/twenty/assets/36916632/beb91dc1-2d3c-46a5-93aa-f8189913fece) Fixes #5416 ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published in downstream modules --- .../record-inline-cell/components/RecordInlineCellEditMode.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditMode.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditMode.tsx index 9468b2c0b2..d753e4893c 100644 --- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditMode.tsx +++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellEditMode.tsx @@ -30,11 +30,10 @@ export const RecordInlineCellEditMode = ({ children, }: RecordInlineCellEditModeProps) => { const { refs, floatingStyles } = useFloating({ - placement: 'right', middleware: [ flip(), offset({ - crossAxis: -0.5, + mainAxis: -30, }), ], whileElementsMounted: autoUpdate,