Revert "Add unified sidebar width setting" (#3609)

This commit is contained in:
Chenlei Hu
2025-04-24 17:14:01 -04:00
committed by GitHub
parent ba3e2edb8a
commit 31d5671f24
10 changed files with 2 additions and 40 deletions

View File

@@ -1,9 +1,9 @@
<template>
<Splitter
:key="sidebarStateKey"
:key="activeSidebarTabId ?? undefined"
class="splitter-overlay-root splitter-overlay"
:pt:gutter="sidebarPanelVisible ? '' : 'hidden'"
:state-key="sidebarStateKey"
:state-key="activeSidebarTabId ?? undefined"
state-storage="local"
>
<SplitterPanel
@@ -59,10 +59,6 @@ const sidebarLocation = computed<'left' | 'right'>(() =>
settingStore.get('Comfy.Sidebar.Location')
)
const unifiedWidth = computed(() =>
settingStore.get('Comfy.Sidebar.UnifiedWidth')
)
const sidebarPanelVisible = computed(
() => useSidebarTabStore().activeSidebarTab !== null
)
@@ -72,10 +68,6 @@ const bottomPanelVisible = computed(
const activeSidebarTabId = computed(
() => useSidebarTabStore().activeSidebarTabId
)
const sidebarStateKey = computed(() => {
return unifiedWidth.value ? 'unified-sidebar' : activeSidebarTabId.value ?? ''
})
</script>
<style scoped>