From 36fda56d95fdc35def2993bca53174f6453e4d17 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Wed, 10 Dec 2025 06:36:41 -0800 Subject: [PATCH] Implement progress text on actionbar --- src/components/TopMenuSection.vue | 19 +- src/components/actionbar/ComfyActionbar.vue | 188 ++++++++++++-------- 2 files changed, 133 insertions(+), 74 deletions(-) diff --git a/src/components/TopMenuSection.vue b/src/components/TopMenuSection.vue index b43d96edc..12954fd90 100644 --- a/src/components/TopMenuSection.vue +++ b/src/components/TopMenuSection.vue @@ -17,6 +17,7 @@ class="[&:not(:has(*>*:not(:empty)))]:hidden" > @@ -38,7 +39,13 @@ - +
+ +
@@ -57,6 +64,7 @@ import CurrentUserButton from '@/components/topbar/CurrentUserButton.vue' import LoginButton from '@/components/topbar/LoginButton.vue' import { useCurrentUser } from '@/composables/auth/useCurrentUser' import { buildTooltipConfig } from '@/composables/useTooltipConfig' +import { useSettingStore } from '@/platform/settings/settingStore' import { app } from '@/scripts/app' import { useRightSidePanelStore } from '@/stores/workspace/rightSidePanelStore' import { useWorkspaceStore } from '@/stores/workspaceStore' @@ -64,11 +72,20 @@ import { isElectron } from '@/utils/envUtil' const workspaceStore = useWorkspaceStore() const rightSidePanelStore = useRightSidePanelStore() +const settingsStore = useSettingStore() const { isLoggedIn } = useCurrentUser() const isDesktop = isElectron() const { t } = useI18n() const isQueueOverlayExpanded = ref(false) const actionbarContainerRef = ref() +const isActionbarDocked = ref(true) +const actionbarPosition = computed(() => settingsStore.get('Comfy.UseNewMenu')) +const isActionbarEnabled = computed( + () => actionbarPosition.value !== 'Disabled' +) +const isActionbarFloating = computed( + () => isActionbarEnabled.value && !isActionbarDocked.value +) // Right side panel toggle const { isOpen: isRightSidePanelOpen } = storeToRefs(rightSidePanelStore) diff --git a/src/components/actionbar/ComfyActionbar.vue b/src/components/actionbar/ComfyActionbar.vue index 3d565b8b2..aa0e6a965 100644 --- a/src/components/actionbar/ComfyActionbar.vue +++ b/src/components/actionbar/ComfyActionbar.vue @@ -1,7 +1,7 @@