fix(cursor): misaligned in long inputs (#1388)

This commit is contained in:
Vikhyath Mondreti
2025-09-19 11:49:36 -07:00
committed by GitHub
parent 225571c49a
commit b5570c1c0e

View File

@@ -397,13 +397,12 @@ export function LongInput({
/>
<div
ref={overlayRef}
className='pointer-events-none absolute inset-0 whitespace-pre-wrap break-words bg-transparent px-3 py-2 text-sm'
className='pointer-events-none absolute inset-0 overflow-auto whitespace-pre-wrap break-words border border-transparent bg-transparent px-3 py-2 text-base md:text-sm'
style={{
fontFamily: 'inherit',
lineHeight: 'inherit',
width: '100%',
height: `${height}px`,
overflow: 'hidden',
}}
>
{formatDisplayText(value?.toString() ?? '')}