mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 06:19:58 +00:00
Fix menu position docked issue
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user