From b598ce2c0f52a323079a54bfcac701400c9a2d9b Mon Sep 17 00:00:00 2001 From: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com> Date: Fri, 19 Dec 2025 08:32:58 +0100 Subject: [PATCH] fix: node preview Vue mode sizing in manager panel (#7611) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Add `lg-node-preview` class to LGraphNodePreview for CSS targeting - Override absolute positioning in NodesTabPanel to make Vue mode previews fit within the container - Apply zoom scaling (0.5) to fit node previews in the manager info panel ## Test plan - [ ] Open manager panel and select a node pack with nodes - [ ] Verify node previews display correctly with Vue mode enabled - [ ] Verify previews fit within the panel bounds without overflow ## Before https://github.com/user-attachments/assets/8cd3a201-600d-4f31-9b79-4a480a07d998 ## After https://github.com/user-attachments/assets/b88ee7f2-5e6d-4913-b5a6-fa5fbe3b4dde ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7611-fix-node-preview-Vue-mode-sizing-in-manager-panel-2cd6d73d36508141843cea046f104746) by [Unito](https://www.unito.io) --- src/components/node/NodePreview.vue | 9 +++++++-- .../vueNodes/components/LGraphNodePreview.vue | 11 +++++++++-- .../manager/infoPanel/tabs/NodesTabPanel.vue | 8 +++++++- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/components/node/NodePreview.vue b/src/components/node/NodePreview.vue index cb898e273..107ee3471 100644 --- a/src/components/node/NodePreview.vue +++ b/src/components/node/NodePreview.vue @@ -2,7 +2,11 @@ https://github.com/Nuked88/ComfyUI-N-Sidebar/blob/7ae7da4a9761009fb6629bc04c683087a3e168db/app/js/functions/sb_fn.js#L149 -->