@@ -30,6 +30,8 @@ import SearchNav from '../components/SearchNav.vue'
3030import Menu from ' ../components/Menu.vue'
3131import AutoLogout from ' ../components/AutoLogout.vue'
3232import ChatWidget from ' ../components/ChatWidget.vue'
33+ import { Splitpanes , Pane } from ' splitpanes'
34+ import ' splitpanes/dist/splitpanes.css'
3335import { onMounted , ref , computed } from ' vue'
3436import { getCurrentUser } from ' ../obp'
3537import { useRoute } from ' vue-router'
@@ -53,12 +55,14 @@ const isChatbotEnabled = import.meta.env.VITE_CHATBOT_ENABLED === 'true'
5355<template >
5456
5557 <AutoLogout v-if =isLoggedIn />
56- <el-container class =" root" >
57- <el-aside class =" search-nav" width =" 20%" >
58- <!-- Left-->
59- <SearchNav />
60- </el-aside >
61- <el-main >
58+ <Splitpanes class =" root" >
59+ <Pane :size =" 20" :min-size =" 10" :max-size =" 40" >
60+ <div class =" search-nav" >
61+ <!-- Left-->
62+ <SearchNav />
63+ </div >
64+ </Pane >
65+ <Pane :size =" 80" >
6266 <el-container class =" main" >
6367 <!-- <el-header class="collections">
6468 <Collections />
@@ -82,14 +86,13 @@ const isChatbotEnabled = import.meta.env.VITE_CHATBOT_ENABLED === 'true'
8286 </el-footer>-->
8387 </el-container >
8488 <ChatWidget v-if =" isChatbotEnabled" />
85- </el-main >
86- </el-container >
89+ </Pane >
90+ </Splitpanes >
8791</template >
8892
8993<style >
9094.root {
9195 height : 100% ;
92- /* min-height: 100vh; */
9396}
9497.summary {
9598 max-height : 100% ;
@@ -118,4 +121,15 @@ const isChatbotEnabled = import.meta.env.VITE_CHATBOT_ENABLED === 'true'
118121 padding-left : 20px ;
119122 padding-right : 20px ;
120123}
124+
125+ /* Splitpanes handle styling */
126+ .splitpanes--vertical > .splitpanes__splitter {
127+ width : 5px ;
128+ background-color : #dcdfe6 ;
129+ border : none ;
130+ cursor : col-resize ;
131+ }
132+ .splitpanes--vertical > .splitpanes__splitter :hover {
133+ background-color : #409eff ;
134+ }
121135 </style >
0 commit comments