Ver código fonte

feat: enhance the custom note (#8885)

非法操作 5 meses atrás
pai
commit
beb7953d38

+ 0 - 1
web/app/components/workflow/note-node/index.tsx

@@ -81,7 +81,6 @@ const NoteNode = ({
             nodeData={data}
             icon={<Icon />}
             minWidth={240}
-            maxWidth={640}
             minHeight={88}
           />
           <div className='shrink-0 h-2 opacity-50 rounded-t-md' style={{ background: THEME_MAP[theme].title }}></div>

+ 4 - 0
web/app/components/workflow/style.css

@@ -15,4 +15,8 @@
 #workflow-container .react-flow__selection {
   border: 1px solid #528BFF;
   background: rgba(21, 94, 239, 0.05);
+}
+
+#workflow-container .react-flow__node-custom-note {
+  z-index: -1000 !important;
 }