:zap: [Enhance] Prettify sidebar UI
Browse files- components/inputs_binder.js +2 -2
- index.html +6 -6
components/inputs_binder.js
CHANGED
@@ -50,8 +50,8 @@ class ChatHistorySidebarResizeBinder {
|
|
50 |
constructor() {
|
51 |
this.USER_INTERACTIONS_MAX_WIDTH = 900;
|
52 |
this.SIDEBAR_GAP = 20;
|
53 |
-
this.SIDEBAR_MAX_WIDTH =
|
54 |
-
this.SIDEBAR_MIN_WIDTH =
|
55 |
}
|
56 |
bind() {
|
57 |
this.resize();
|
|
|
50 |
constructor() {
|
51 |
this.USER_INTERACTIONS_MAX_WIDTH = 900;
|
52 |
this.SIDEBAR_GAP = 20;
|
53 |
+
this.SIDEBAR_MAX_WIDTH = 300;
|
54 |
+
this.SIDEBAR_MIN_WIDTH = 150;
|
55 |
}
|
56 |
bind() {
|
57 |
this.resize();
|
index.html
CHANGED
@@ -29,12 +29,12 @@
|
|
29 |
<div id="chat-history-sidebar" class="offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false"
|
30 |
aria-labelledby="chat-history-sidebar-label">
|
31 |
<div class="offcanvas-header">
|
32 |
-
<h5 class="offcanvas-title" id="chat-history-label">
|
33 |
-
<a style="text-decoration: none; color:inherit;" href="#">History</a>
|
34 |
-
</h5>
|
35 |
<button id="chat-history-sidebar-close-button" class="btn">
|
36 |
<i class="fa fa-close"></i>
|
37 |
</button>
|
|
|
|
|
|
|
38 |
</div>
|
39 |
<div class="offcanvas-body">
|
40 |
<ul id="chat-history-sidebar-items" class="navbar-nav justify-content-end flex-grow-1">
|
@@ -61,12 +61,12 @@
|
|
61 |
<div id="chat-agents-sidebar" class="offcanvas offcanvas-end" data-bs-scroll="true" data-bs-backdrop="false"
|
62 |
aria-labelledby="chat-agents-sidebar-label">
|
63 |
<div class="offcanvas-header">
|
64 |
-
<button id="chat-agents-sidebar-close-button" class="btn px-0 mx-0">
|
65 |
-
<i class="fa fa-close"></i>
|
66 |
-
</button>
|
67 |
<h5 class="offcanvas-title" id="chat-agents-label">
|
68 |
<a style="text-decoration: none; color:inherit;"> Agent Info</a>
|
69 |
</h5>
|
|
|
|
|
|
|
70 |
</div>
|
71 |
<div class="offcanvas-body">
|
72 |
<div class="my-3 row no-gutters">
|
|
|
29 |
<div id="chat-history-sidebar" class="offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false"
|
30 |
aria-labelledby="chat-history-sidebar-label">
|
31 |
<div class="offcanvas-header">
|
|
|
|
|
|
|
32 |
<button id="chat-history-sidebar-close-button" class="btn">
|
33 |
<i class="fa fa-close"></i>
|
34 |
</button>
|
35 |
+
<h5 class="offcanvas-title" id="chat-history-label">
|
36 |
+
<a style="text-decoration: none; color:inherit;" href="#">History</a>
|
37 |
+
</h5>
|
38 |
</div>
|
39 |
<div class="offcanvas-body">
|
40 |
<ul id="chat-history-sidebar-items" class="navbar-nav justify-content-end flex-grow-1">
|
|
|
61 |
<div id="chat-agents-sidebar" class="offcanvas offcanvas-end" data-bs-scroll="true" data-bs-backdrop="false"
|
62 |
aria-labelledby="chat-agents-sidebar-label">
|
63 |
<div class="offcanvas-header">
|
|
|
|
|
|
|
64 |
<h5 class="offcanvas-title" id="chat-agents-label">
|
65 |
<a style="text-decoration: none; color:inherit;"> Agent Info</a>
|
66 |
</h5>
|
67 |
+
<button id="chat-agents-sidebar-close-button" class="btn px-0 mx-0">
|
68 |
+
<i class="fa fa-close"></i>
|
69 |
+
</button>
|
70 |
</div>
|
71 |
<div class="offcanvas-body">
|
72 |
<div class="my-3 row no-gutters">
|