fix(FieldOverlay): vertically center editor content
- add flex items-center to fitContainer overlay - fixes editor appearing at top edge instead of centering on field label
This commit is contained in:
@@ -43,7 +43,7 @@ export function FieldOverlay({
|
|||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
'absolute z-50 rounded-md border border-input bg-background shadow-sm',
|
'absolute z-50 rounded-md border border-input bg-background shadow-sm',
|
||||||
fitContainer ? 'inset-0' : 'left-0 top-0 min-w-full w-max',
|
fitContainer ? 'inset-0 flex items-center' : 'left-0 top-0 min-w-full w-max',
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
style={style}
|
style={style}
|
||||||
|
|||||||
Reference in New Issue
Block a user