mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[backport core/1.34] style-fix: Don't add body padding with no body. (#7523)
## Summary Backport of #7424 to core/1.34. Small fix for collapsed nodes - don't add body padding when node is collapsed. ### Changes - Removed unconditional `pb-1` from node base classes - Added conditional `!isCollapsed && ' pb-1'` to only apply padding when node is expanded Original PR: #7424 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Alexander Brown <drjkl@comfy.org>
This commit is contained in:
@@ -8,8 +8,7 @@
|
|||||||
:data-node-id="nodeData.id"
|
:data-node-id="nodeData.id"
|
||||||
:class="
|
:class="
|
||||||
cn(
|
cn(
|
||||||
'bg-component-node-background lg-node absolute pb-1',
|
'bg-component-node-background lg-node absolute',
|
||||||
|
|
||||||
'contain-style contain-layout min-w-[225px] min-h-(--node-height) w-(--node-width)',
|
'contain-style contain-layout min-w-[225px] min-h-(--node-height) w-(--node-width)',
|
||||||
shapeClass,
|
shapeClass,
|
||||||
'touch-none flex flex-col',
|
'touch-none flex flex-col',
|
||||||
@@ -31,7 +30,8 @@
|
|||||||
|
|
||||||
shouldHandleNodePointerEvents
|
shouldHandleNodePointerEvents
|
||||||
? 'pointer-events-auto'
|
? 'pointer-events-auto'
|
||||||
: 'pointer-events-none'
|
: 'pointer-events-none',
|
||||||
|
!isCollapsed && ' pb-1'
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
:style="[
|
:style="[
|
||||||
|
|||||||
Reference in New Issue
Block a user