fix: vue nodes preview node to match lg and add node when clicked (#7146)

## Summary

Make the preview node match recent LGraphNode.vue look. Also add support
to click from search.

## Changes

- **What**: NodeSearchBox.vue, LGraphNodePreview.vue, nodeDefStore.ts

## Screenshots (if applicable)


https://github.com/user-attachments/assets/ed46d641-66bf-4e23-a207-9102609a7a4a


┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7146-fix-vue-nodes-preview-node-to-match-lg-and-add-node-when-clicked-2bf6d73d3650814383b2c786e2ab4d02)
by [Unito](https://www.unito.io)
This commit is contained in:
Simula_r
2025-12-04 15:31:38 -08:00
committed by GitHub
parent 431fe33ea3
commit ab777bc65c
3 changed files with 28 additions and 24 deletions

View File

@@ -198,7 +198,10 @@ export const SYSTEM_NODE_DEFS: Record<string, ComfyNodeDefV1> = {
name: 'Note',
display_name: 'Note',
category: 'utils',
input: { required: {}, optional: {} },
input: {
required: { text: ['STRING', { multiline: true }] },
optional: {}
},
output: [],
output_name: [],
output_is_list: [],
@@ -210,7 +213,10 @@ export const SYSTEM_NODE_DEFS: Record<string, ComfyNodeDefV1> = {
name: 'MarkdownNote',
display_name: 'Markdown Note',
category: 'utils',
input: { required: {}, optional: {} },
input: {
required: { text: ['STRING', { multiline: true }] },
optional: {}
},
output: [],
output_name: [],
output_is_list: [],