add "add block" shortcut ui
This commit is contained in:
parent
18b61591b8
commit
4fcb048607
@ -75,7 +75,7 @@ const AddBlock = ({
|
|||||||
|
|
||||||
const renderTriggerElement = useCallback((open: boolean) => {
|
const renderTriggerElement = useCallback((open: boolean) => {
|
||||||
return (
|
return (
|
||||||
<TipPopup title={t('workflow.common.addBlock')}>
|
<TipPopup title={t('workflow.common.addBlock')} shortcuts={['shift', 'a']}>
|
||||||
<div className={cn(
|
<div className={cn(
|
||||||
'flex items-center justify-center w-8 h-8 rounded-lg hover:bg-black/5 hover:text-gray-700 cursor-pointer',
|
'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'}`,
|
`${nodesReadOnly && '!cursor-not-allowed opacity-50'}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user