Skip to content

Commit 969656b

Browse files
committed
UI change: draggable 1
1 parent c8ba451 commit 969656b

4 files changed

Lines changed: 36 additions & 10 deletions

File tree

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"routing-controllers": "^0.10.4",
5555
"socket.io": "^4.7.5",
5656
"socket.io-client": "^4.7.5",
57+
"splitpanes": "^4.0.4",
5758
"typedi": "^0.10.0",
5859
"uuid": "^9.0.1",
5960
"vanilla-jsoneditor": "^2.3.3",

src/assets/main.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ main {
6565
.search-nav {
6666
background-color: #f8f9fb;
6767
padding: 8px 0 8px 8px;
68-
border-right: solid 1px var(--el-menu-border-color);
6968
}
7069

7170
.el-notification__content {

src/views/BodyView.vue

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import SearchNav from '../components/SearchNav.vue'
3030
import Menu from '../components/Menu.vue'
3131
import AutoLogout from '../components/AutoLogout.vue'
3232
import ChatWidget from '../components/ChatWidget.vue'
33+
import { Splitpanes, Pane } from 'splitpanes'
34+
import 'splitpanes/dist/splitpanes.css'
3335
import { onMounted, ref, computed } from 'vue'
3436
import { getCurrentUser } from '../obp'
3537
import { 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

Comments
 (0)