add "add block" shortcut ui

This commit is contained in:
Yi 2024-08-23 16:18:19 +08:00
parent 18b61591b8
commit 4fcb048607

View File

@ -75,7 +75,7 @@ const AddBlock = ({
const renderTriggerElement = useCallback((open: boolean) => {
return (
<TipPopup title={t('workflow.common.addBlock')}>
<TipPopup title={t('workflow.common.addBlock')} shortcuts={['shift', 'a']}>
<div className={cn(
'flex items-center justify-center w-8 h-8 rounded-lg hover:bg-black/5 hover:text-gray-700 cursor-pointer',
`${nodesReadOnly && '!cursor-not-allowed opacity-50'}`,