mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
Fix node sizing in vue mode (#6289)
Before  After  Also add ~~content~~ [contain](https://developer.mozilla.org/en-US/docs/Web/CSS/contain) styling for improved render performance. Future: - Update size scaling for WidgetLayoutField widgets. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6289-Fix-node-sizing-in-vue-mode-2986d73d365081ac8fa0da35a635b226) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -12,20 +12,20 @@ defineProps<{
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="flex h-[30px] items-center justify-between gap-2 overscroll-contain"
|
||||
class="flex h-[30px] min-w-105 items-center justify-between gap-2 overscroll-contain contain-size"
|
||||
>
|
||||
<div class="relative flex h-6 items-center">
|
||||
<div class="relative flex h-6 min-w-28 shrink-1 items-center">
|
||||
<p
|
||||
v-if="widget.name"
|
||||
class="lod-toggle w-28 flex-1 truncate text-sm font-normal text-node-component-slot-text"
|
||||
class="lod-toggle flex-1 truncate text-sm font-normal text-node-component-slot-text"
|
||||
>
|
||||
{{ widget.label || widget.name }}
|
||||
</p>
|
||||
<LODFallback />
|
||||
</div>
|
||||
<div class="relative">
|
||||
<div class="relative min-w-75 grow-1">
|
||||
<div
|
||||
class="lod-toggle w-75 cursor-default"
|
||||
class="lod-toggle cursor-default"
|
||||
@pointerdown.stop="noop"
|
||||
@pointermove.stop="noop"
|
||||
@pointerup.stop="noop"
|
||||
|
||||
Reference in New Issue
Block a user