mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 08:19:51 +00:00
[backport core/1.35] fix: node preview Vue mode sizing in manager panel (#7640)
Backport of #7611 to `core/1.35` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7640-backport-core-1-35-fix-node-preview-Vue-mode-sizing-in-manager-panel-2ce6d73d365081759ef5c8e05ff92553) by [Unito](https://www.unito.io) Co-authored-by: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com>
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<template>
|
||||
<div
|
||||
:data-node-id="nodeData.id"
|
||||
class="bg-component-node-background lg-node absolute pb-1 contain-style contain-layout w-[350px] rounded-2xl touch-none flex flex-col border-1 border-solid outline-transparent outline-2 border-node-stroke"
|
||||
:class="
|
||||
cn(
|
||||
'bg-component-node-background lg-node pb-1 contain-style contain-layout w-[350px] rounded-2xl touch-none flex flex-col border-1 border-solid outline-transparent outline-2 border-node-stroke',
|
||||
position
|
||||
)
|
||||
"
|
||||
>
|
||||
<div
|
||||
class="flex flex-col justify-center items-center relative pointer-events-none"
|
||||
@@ -37,9 +42,11 @@ import NodeSlots from '@/renderer/extensions/vueNodes/components/NodeSlots.vue'
|
||||
import NodeWidgets from '@/renderer/extensions/vueNodes/components/NodeWidgets.vue'
|
||||
import type { ComfyNodeDef as ComfyNodeDefV2 } from '@/schemas/nodeDef/nodeDefSchemaV2'
|
||||
import { useWidgetStore } from '@/stores/widgetStore'
|
||||
import { cn } from '@/utils/tailwindUtil'
|
||||
|
||||
const { nodeDef } = defineProps<{
|
||||
const { nodeDef, position = 'absolute' } = defineProps<{
|
||||
nodeDef: ComfyNodeDefV2
|
||||
position?: 'absolute' | 'relative'
|
||||
}>()
|
||||
|
||||
const widgetStore = useWidgetStore()
|
||||
|
||||
Reference in New Issue
Block a user