Fix menu position docked issue

This commit is contained in:
Benjamin Lu
2025-12-10 13:15:48 -08:00
parent 36fda56d95
commit 33626a579c
2 changed files with 4 additions and 7 deletions

View File

@@ -50,6 +50,7 @@
</template>
<script setup lang="ts">
import { useLocalStorage } from '@vueuse/core'
import { storeToRefs } from 'pinia'
import { computed, onMounted, ref } from 'vue'
import { useI18n } from 'vue-i18n'
@@ -78,7 +79,7 @@ const isDesktop = isElectron()
const { t } = useI18n()
const isQueueOverlayExpanded = ref(false)
const actionbarContainerRef = ref<HTMLElement>()
const isActionbarDocked = ref(true)
const isActionbarDocked = useLocalStorage('Comfy.MenuPosition.Docked', true)
const actionbarPosition = computed(() => settingsStore.get('Comfy.UseNewMenu'))
const isActionbarEnabled = computed(
() => actionbarPosition.value !== 'Disabled'

View File

@@ -145,13 +145,9 @@ const tabContainer = document.querySelector('.workflow-tabs-container')
const actionbarWrapperRef = ref<HTMLElement | null>(null)
const panelRef = ref<HTMLElement | ComponentPublicInstance | null>(null)
const dragHandleRef = ref<HTMLElement | null>(null)
const storedDocked = useLocalStorage('Comfy.MenuPosition.Docked', true)
const docked = computed({
get: () => props.docked ?? storedDocked.value,
set: (value) => {
storedDocked.value = value
emit('update:docked', value)
}
get: () => props.docked ?? false,
set: (value) => emit('update:docked', value)
})
const storedPosition = useLocalStorage('Comfy.MenuPosition.Floating', {
x: 0,