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.  Fixes #5416 ### Type of change <!-- Please delete options that are not relevant. --> - [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
This commit is contained in:
@ -30,11 +30,10 @@ export const RecordInlineCellEditMode = ({
|
|||||||
children,
|
children,
|
||||||
}: RecordInlineCellEditModeProps) => {
|
}: RecordInlineCellEditModeProps) => {
|
||||||
const { refs, floatingStyles } = useFloating({
|
const { refs, floatingStyles } = useFloating({
|
||||||
placement: 'right',
|
|
||||||
middleware: [
|
middleware: [
|
||||||
flip(),
|
flip(),
|
||||||
offset({
|
offset({
|
||||||
crossAxis: -0.5,
|
mainAxis: -30,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
whileElementsMounted: autoUpdate,
|
whileElementsMounted: autoUpdate,
|
||||||
|
|||||||
Reference in New Issue
Block a user