File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1616 </div >
1717
1818 <Splitter
19- key =" main-splitter-stable "
19+ : key =" splitterRefreshKey "
2020 class =" bg-transparent pointer-events-none border-none flex-1 overflow-hidden"
2121 :state-key =" sidebarStateKey"
2222 state-storage =" local"
@@ -137,6 +137,15 @@ const sidebarStateKey = computed(() => {
137137 : // When no tab is active, use a default key to maintain state
138138 (activeSidebarTabId .value ?? ' default-sidebar' )
139139})
140+
141+ /**
142+ * Force refresh the splitter when right panel visibility changes to recalculate the width
143+ */
144+ const splitterRefreshKey = computed (() => {
145+ return rightSidePanelVisible .value
146+ ? ' main-splitter-with-right-panel'
147+ : ' main-splitter'
148+ })
140149 </script >
141150
142151<style scoped>
You can’t perform that action at this time.
0 commit comments