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:
iisultanov
2026-07-15 21:42:39 +03:00
parent dfdcd4c160
commit 807c2c8680

View File

@@ -43,7 +43,7 @@ export function FieldOverlay({
<div
className={cn(
'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
)}
style={style}