mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
## Summary Remove the 225px minimum width constraint from reroute nodes so they render at their intended ~75×26px size. ## Changes - **What**: Reroute nodes now bypass the `min-w-[225px]` CSS constraint and bottom padding applied to regular nodes. `resizable: false` is set on the RerouteNode constructor to hide the resize handle. An `isRerouteNode` computed in `LGraphNode.vue` gates these behaviors by checking `nodeData.type === "Reroute"`. ## Review Focus - Detection mechanism uses `type === "Reroute"` (explicit) rather than `titleMode === NO_TITLE` (semantic but too broad). See PR #8574 as prior art for reroute-specific conditionals. - PR #7993 (open) modifies `LGraphNode.ts` pos/size setters but does not touch `LGraphNode.vue` template or resize callback — no conflict expected. Fixes #4704 ## Screenshots (if applicable) Reroute nodes now render at ~75px wide instead of being forced to 225px minimum. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8734-fix-vueNodes-decrease-default-size-of-reroute-nodes-3016d73d3650816dbeead93517a52f25) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
25 lines
717 B
TypeScript
25 lines
717 B
TypeScript
import {
|
|
comfyExpect as expect,
|
|
comfyPageFixture as test
|
|
} from '../../fixtures/ComfyPage'
|
|
|
|
test.describe('Vue Reroute Node Size', () => {
|
|
test.beforeEach(async ({ comfyPage }) => {
|
|
await comfyPage.settings.setSetting('Comfy.VueNodes.Enabled', true)
|
|
await comfyPage.settings.setSetting('Comfy.Minimap.Visible', false)
|
|
await comfyPage.workflow.loadWorkflow('links/single_connected_reroute_node')
|
|
await comfyPage.vueNodes.waitForNodes()
|
|
})
|
|
|
|
test(
|
|
'reroute node visual appearance',
|
|
{ tag: '@screenshot' },
|
|
async ({ comfyPage }) => {
|
|
await comfyPage.nextFrame()
|
|
await expect(comfyPage.canvas).toHaveScreenshot(
|
|
'vue-reroute-node-compact.png'
|
|
)
|
|
}
|
|
)
|
|
})
|