@@ -186,25 +186,27 @@ const ZoomInOut: FC = () => {
options.map(option => (
handleZoom(option.key)}
>
- {option.text}
- {
- option.key === ZoomType.zoomToFit && (
-
- )
- }
- {
- option.key === ZoomType.zoomTo50 && (
-
- )
- }
- {
- option.key === ZoomType.zoomTo100 && (
-
- )
- }
+
{option.text}
+
+ {
+ option.key === ZoomType.zoomToFit && (
+
+ )
+ }
+ {
+ option.key === ZoomType.zoomTo50 && (
+
+ )
+ }
+ {
+ option.key === ZoomType.zoomTo100 && (
+
+ )
+ }
+
))
}
diff --git a/web/app/components/workflow/panel-contextmenu.tsx b/web/app/components/workflow/panel-contextmenu.tsx
index f01e3037a2..8ed0e10dca 100644
--- a/web/app/components/workflow/panel-contextmenu.tsx
+++ b/web/app/components/workflow/panel-contextmenu.tsx
@@ -5,6 +5,7 @@ import {
} from 'react'
import { useTranslation } from 'react-i18next'
import { useClickAway } from 'ahooks'
+import Divider from '../base/divider'
import ShortcutsName from './shortcuts-name'
import { useStore } from './store'
import {
@@ -41,7 +42,7 @@ const PanelContextmenu = () => {
const renderTrigger = () => {
return (
{t('workflow.common.addBlock')}
@@ -53,7 +54,7 @@ const PanelContextmenu = () => {
return (
{
}}
/>
{
e.stopPropagation()
handleAddNote()
@@ -79,7 +80,7 @@ const PanelContextmenu = () => {
{t('workflow.nodes.note.addNote')}
{
handleStartWorkflowRun()
handlePaneContextmenuCancel()
@@ -89,12 +90,12 @@ const PanelContextmenu = () => {
-
+
{
if (clipboardElements.length) {
@@ -107,16 +108,16 @@ const PanelContextmenu = () => {
-
+
exportCheck()}
>
{t('app.export')}
setShowImportDSLModal(true)}
>
{t('workflow.common.importDSL')}
diff --git a/web/app/components/workflow/shortcuts-name.tsx b/web/app/components/workflow/shortcuts-name.tsx
index 129753c198..cfb5c33daf 100644
--- a/web/app/components/workflow/shortcuts-name.tsx
+++ b/web/app/components/workflow/shortcuts-name.tsx
@@ -12,14 +12,14 @@ const ShortcutsName = ({
}: ShortcutsNameProps) => {
return (
{
keys.map(key => (
{getKeyboardKeyNameBySystem(key)}
diff --git a/web/app/components/workflow/style.css b/web/app/components/workflow/style.css
index ca1d24a52e..253d6b7dd0 100644
--- a/web/app/components/workflow/style.css
+++ b/web/app/components/workflow/style.css
@@ -19,4 +19,6 @@
#workflow-container .react-flow__node-custom-note {
z-index: -1000 !important;
-}
\ No newline at end of file
+}
+
+#workflow-container .react-flow {}
\ No newline at end of file
diff --git a/web/app/components/workflow/utils.ts b/web/app/components/workflow/utils.ts
index f5c112d6e8..abe129e6d6 100644
--- a/web/app/components/workflow/utils.ts
+++ b/web/app/components/workflow/utils.ts
@@ -549,6 +549,7 @@ export const isMac = () => {
const specialKeysNameMap: Record
= {
ctrl: '⌘',
alt: '⌥',
+ shift: '⇧',
}
export const getKeyboardKeyNameBySystem = (key: string) => {
diff --git a/web/app/layout.tsx b/web/app/layout.tsx
index 48e35c50e0..9c4f8ba16d 100644
--- a/web/app/layout.tsx
+++ b/web/app/layout.tsx
@@ -34,7 +34,7 @@ const LocaleLayout = ({