ソースを参照

fix: workflow note editor placeholder (#14380)

zxhlyh 7 ヶ月 前
コミット
1aaab741a0
共有2 個のファイルを変更した1 個の追加2 個の削除を含む
  1. 1 1
      web/app/components/workflow/note-node/index.tsx
  2. 0 1
      web/app/components/workflow/note-node/note-editor/editor.tsx

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

@@ -90,7 +90,7 @@ const NoteNode = ({
             )}></div>
           {
             data.selected && (
-              <div className='absolute -top-[41px] left-1/2 -translate-x-1/2'>
+              <div className='absolute top-[-41px] left-1/2 -translate-x-1/2'>
                 <NoteEditorToolbar
                   theme={theme}
                   onThemeChange={handleThemeChange}

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

@@ -45,7 +45,6 @@ const Editor = ({
               onBlur={() => setShortcutsEnabled(true)}
               spellCheck={false}
               className='w-full h-full outline-none text-text-secondary caret-primary-600'
-              placeholder={placeholder}
             />
           </div>
         }