From 76fd80aa98fb2baaba2d5e1baccb359e1ca21f5d Mon Sep 17 00:00:00 2001 From: jaeone94 <89377375+jaeone94@users.noreply.github.com> Date: Mon, 9 Mar 2026 21:24:00 +0900 Subject: [PATCH] fix: hide empty actionbar container and relocate error border to floating actionbar (#9657) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary When the actionbar is floating and has no docked buttons, the container is now hidden (zero-width, transparent border) to avoid showing an empty rounded box. Additionally, the error/destructive border is now applied to the floating actionbar panel itself (via `ComfyActionbar`) instead of the container, so it appears in the correct location when floating. ## Changes - **TopMenuSection**: Added `hasDockedButtons` and `isActionbarContainerEmpty` computed properties to detect when the docked container has no visible buttons; `actionbarContainerClass` computed hides the container by collapsing it when empty and floating, while preserving the legacy drop zone via `:has(.border-dashed)` CSS selector - **TopMenuSection**: Error border (`border-destructive-background-hover`) is now only applied to the docked container when the actionbar is **not** floating - **ComfyActionbar**: Accepts new `hasAnyError` prop and applies the error border to the floating panel's `panelClass` when floating ## Review Focus - The `has-[.border-dashed]` CSS selector restores the container visuals when a legacy drag-target element is present inside it — verify this works as expected - Error border placement: docked mode shows border on container, floating mode shows border on the fixed panel ## Screenshots https://github.com/user-attachments/assets/75caabac-e391-4bfd-b4dc-62d564e55d37 --- src/components/TopMenuSection.vue | 73 +++++++++++++++++---- src/components/actionbar/ComfyActionbar.vue | 14 +++- 2 files changed, 73 insertions(+), 14 deletions(-) diff --git a/src/components/TopMenuSection.vue b/src/components/TopMenuSection.vue index f0e54bdc70..2c799f1c04 100644 --- a/src/components/TopMenuSection.vue +++ b/src/components/TopMenuSection.vue @@ -34,17 +34,7 @@ -