Save sidebar width per tab (#1985)

This commit is contained in:
Zoltán Dócs
2024-12-18 23:56:27 +01:00
committed by GitHub
parent 0906d7873a
commit abeafd5625

View File

@@ -2,7 +2,8 @@
<Splitter
class="splitter-overlay-root splitter-overlay"
:pt:gutter="sidebarPanelVisible ? '' : 'hidden'"
stateKey="sidebar-splitter"
:key="activeSidebarTabId"
:stateKey="activeSidebarTabId"
stateStorage="local"
>
<SplitterPanel
@@ -63,6 +64,9 @@ const sidebarPanelVisible = computed(
const bottomPanelVisible = computed(
() => useBottomPanelStore().bottomPanelVisible
)
const activeSidebarTabId = computed(
() => useSidebarTabStore().activeSidebarTabId
)
</script>
<style scoped>