Fix scroll overlaying elements in WorkflowParametersPanel (#3745)
This commit is contained in:
committed by
GitHub
parent
79daa287eb
commit
7dda8efe06
@@ -101,7 +101,7 @@ function WorkflowParameterAddPanel({ type, onClose, onSave }: Props) {
|
||||
return (
|
||||
<ScrollArea>
|
||||
<ScrollAreaViewport className="max-h-[500px]">
|
||||
<div className="space-y-4 p-1">
|
||||
<div className="space-y-4 p-1 px-4">
|
||||
<header className="flex items-center justify-between">
|
||||
<span>{header(type)}</span>
|
||||
<Cross2Icon className="h-6 w-6 cursor-pointer" onClick={onClose} />
|
||||
|
||||
@@ -185,7 +185,7 @@ function WorkflowParameterEditPanel({
|
||||
return (
|
||||
<ScrollArea>
|
||||
<ScrollAreaViewport className="max-h-[500px]">
|
||||
<div className="space-y-4 p-1">
|
||||
<div className="space-y-4 p-1 px-4">
|
||||
<header className="flex items-center justify-between">
|
||||
<span>{header(type)}</span>
|
||||
<Cross2Icon className="h-6 w-6 cursor-pointer" onClick={onClose} />
|
||||
|
||||
@@ -241,7 +241,7 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
|
||||
}}
|
||||
>
|
||||
{operationPanelState.operation === "add" && (
|
||||
<div className="w-80 rounded-xl border border-slate-700 bg-slate-950 p-5 shadow-xl">
|
||||
<div className="w-80 rounded-xl border border-slate-700 bg-slate-950 p-5 px-2 shadow-xl">
|
||||
<WorkflowParameterAddPanel
|
||||
type={operationPanelState.type}
|
||||
onSave={(parameter) => {
|
||||
@@ -265,7 +265,7 @@ function WorkflowParametersPanel({ onMouseDownCapture }: Props) {
|
||||
)}
|
||||
{operationPanelState.operation === "edit" &&
|
||||
operationPanelState.parameter && (
|
||||
<div className="w-80 rounded-xl border border-slate-700 bg-slate-950 p-5 shadow-xl">
|
||||
<div className="w-80 rounded-xl border border-slate-700 bg-slate-950 p-5 px-2 shadow-xl">
|
||||
<WorkflowParameterEditPanel
|
||||
key={operationPanelState.parameter?.key}
|
||||
type={operationPanelState.type}
|
||||
|
||||
Reference in New Issue
Block a user