mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[PR #3196] Update comfyui-gui-builder.js Universal close button override #3096
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#3096
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/ComfyUI-Manager/pull/3196
Author: @admdev24
Created: 8/23/2026
Status: 🔄 Open
Base:
main← Head:patch-8📝 Commits (1)
3662fe6Update comfyui-gui-builder.js Universal close button override📊 Changes
1 file changed (+29 additions, -1 deletions)
View changed files
📝
js/comfyui-gui-builder.js(+29 -1)📄 Description
Visual Shield Blueprint: Close Button Factory Override
This code patch serves as an immediate style enforcement override block inside comfyui-gui-builder.js to eliminate browser layout delay. By intercepting the close button at its source, it rewrites the button properties directly in memory before the first frame paints onto your screen.
Updated Style Structural Layout: The new code block strips away the layout properties by assigning the custom comfy-close-btn class tag and forcing aggressive layout properties via style.setProperty(..., "important"). It completely removes the element from the shifting document layout flow using position: absolute, anchoring it into a static position at top: 12px and right: 12px. All background colors, borders, and outlines are set to transparent. Finally, it creates a rigid 32px by 32px flexbox collision wrapper (display: inline-flex). This ensures that the close icon stays centered and locked in place, while seamlessly adopting your custom gray hover circles and keyboard accessibility glow rings.
This patch depends on #3188
Before (loading):

After:

After (loading/hovering):

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.