Fixed scrolling on long input and short input

This commit is contained in:
Emir Karabeg
2025-01-21 14:24:31 -08:00
parent b423cc0b4f
commit 2b553546dd
3 changed files with 3 additions and 2 deletions

View File

@@ -329,6 +329,7 @@ function WorkflowCanvas() {
nodesConnectable={true}
nodesDraggable={true}
draggable={false}
noWheelClassName="allow-scroll"
>
<Background />
</ReactFlow>

View File

@@ -16,7 +16,7 @@ export function LongInput({
return (
<Textarea
className="w-full resize-none placeholder:text-muted-foreground/50"
className="w-full resize-none placeholder:text-muted-foreground/50 allow-scroll"
rows={3}
placeholder={placeholder ?? ''}
value={value?.toString() ?? ''}

View File

@@ -25,7 +25,7 @@ export function ShortInput({
return (
<Input
className="w-full placeholder:text-muted-foreground/50"
className="w-full placeholder:text-muted-foreground/50 allow-scroll"
placeholder={placeholder ?? ''}
type="text"
value={displayValue}