mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-07 22:24:06 -05:00
fix(scrollbar): fixed double scrollbar (#665)
This commit is contained in:
@@ -302,12 +302,13 @@ export function LongInput({
|
|||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
ref={overlayRef}
|
ref={overlayRef}
|
||||||
className='pointer-events-none absolute inset-0 overflow-auto whitespace-pre-wrap break-words bg-transparent px-3 py-2 text-sm'
|
className='pointer-events-none absolute inset-0 whitespace-pre-wrap break-words bg-transparent px-3 py-2 text-sm'
|
||||||
style={{
|
style={{
|
||||||
fontFamily: 'inherit',
|
fontFamily: 'inherit',
|
||||||
lineHeight: 'inherit',
|
lineHeight: 'inherit',
|
||||||
width: textareaRef.current ? `${textareaRef.current.clientWidth}px` : '100%',
|
width: textareaRef.current ? `${textareaRef.current.clientWidth}px` : '100%',
|
||||||
height: `${height}px`,
|
height: `${height}px`,
|
||||||
|
overflow: 'hidden',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{formatDisplayText(value?.toString() ?? '', true)}
|
{formatDisplayText(value?.toString() ?? '', true)}
|
||||||
|
|||||||
Reference in New Issue
Block a user