mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
fix(cursor): misaligned in long inputs (#1388)
This commit is contained in:
committed by
GitHub
parent
225571c49a
commit
b5570c1c0e
@@ -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() ?? '')}
|
||||
|
||||
Reference in New Issue
Block a user