diff --git a/web/app/components/workflow/nodes/_base/components/node-handle.tsx b/web/app/components/workflow/nodes/_base/components/node-handle.tsx index f8d6891660..e85b007b7e 100644 --- a/web/app/components/workflow/nodes/_base/components/node-handle.tsx +++ b/web/app/components/workflow/nodes/_base/components/node-handle.tsx @@ -89,7 +89,6 @@ export const NodeTargetHandle = memo(({ hidden absolute left-0 top-0 pointer-events-none ${nodeSelectorClassName} group-hover:flex - group-hover:scale-150 ${open && '!flex'} `} availableBlocksTypes={availablePrevNodes} diff --git a/web/app/components/workflow/panel/debug-and-preview/index.tsx b/web/app/components/workflow/panel/debug-and-preview/index.tsx index ff055a59e7..511ee184f7 100644 --- a/web/app/components/workflow/panel/debug-and-preview/index.tsx +++ b/web/app/components/workflow/panel/debug-and-preview/index.tsx @@ -2,6 +2,7 @@ import { memo, useRef, } from 'react' +import { useKeyPress } from 'ahooks' import { useTranslation } from 'react-i18next' import ChatWrapper from './chat-wrapper' import Button from '@/app/components/base/button' @@ -14,6 +15,12 @@ const DebugAndPreview = () => { const { t } = useTranslation() const chatRef = useRef({ handleRestart: () => {} }) + useKeyPress('shift.r', () => { + chatRef.current.handleRestart() + }, { + exactMatch: true, + }) + return (