mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Save sidebar width per tab (#1985)
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
<Splitter
|
<Splitter
|
||||||
class="splitter-overlay-root splitter-overlay"
|
class="splitter-overlay-root splitter-overlay"
|
||||||
:pt:gutter="sidebarPanelVisible ? '' : 'hidden'"
|
:pt:gutter="sidebarPanelVisible ? '' : 'hidden'"
|
||||||
stateKey="sidebar-splitter"
|
:key="activeSidebarTabId"
|
||||||
|
:stateKey="activeSidebarTabId"
|
||||||
stateStorage="local"
|
stateStorage="local"
|
||||||
>
|
>
|
||||||
<SplitterPanel
|
<SplitterPanel
|
||||||
@@ -63,6 +64,9 @@ const sidebarPanelVisible = computed(
|
|||||||
const bottomPanelVisible = computed(
|
const bottomPanelVisible = computed(
|
||||||
() => useBottomPanelStore().bottomPanelVisible
|
() => useBottomPanelStore().bottomPanelVisible
|
||||||
)
|
)
|
||||||
|
const activeSidebarTabId = computed(
|
||||||
|
() => useSidebarTabStore().activeSidebarTabId
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user