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 <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>