add text notes

This commit is contained in:
2026-03-30 20:47:08 -07:00
parent 7b309a8b23
commit c5c861717a
8 changed files with 291 additions and 0 deletions

View File

@@ -1649,11 +1649,13 @@ function Flow() {
const widgetValues = buildDefaultWidgetValues(def);
const newNodeId = String(nextIdRef.current++);
const isTextNote = className === 'TextNote';
const newNode = {
id: newNodeId,
type: 'custom',
position,
dragHandle: '.drag-handle',
...(isTextNote ? { width: 300, height: 220, style: { width: 300, height: 220 } } : {}),
data: {
label: def.display_name || className,
className,