@pubuduth-aplicy/chat-ui 2.2.23 → 2.2.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubuduth-aplicy/chat-ui",
3
- "version": "2.2.23",
3
+ "version": "2.2.24",
4
4
  "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -335,8 +335,7 @@ const Conversations = () => {
335
335
 
336
336
  {activeTab === "service" &&
337
337
  Object.entries(filteredGroupedServiceChats).length > 0 && (
338
- <div className="p-2"
339
- style={{height:'400px'}}>
338
+ <div className="p-2 h-full">
340
339
  {Object.entries(filteredGroupedServiceChats).map(
341
340
  ([
342
341
  serviceId,
@@ -3,7 +3,7 @@ import SearchInput from "./SearchInput";
3
3
 
4
4
  export const Sidebar = () => {
5
5
  return (
6
- <div className="">
6
+ <div className="chatSidebarWrapper">
7
7
  <SearchInput />
8
8
  <div className="divider px-3"></div>
9
9
  <Conversations />
@@ -126,10 +126,18 @@
126
126
  width: 100%;
127
127
  }
128
128
 
129
+ .chatSidebarWrapper {
130
+ display: flex;
131
+ flex-direction: column;
132
+ height: 100%;
133
+ min-height: 0;
134
+ }
135
+
129
136
  .chatSidebarConversations {
130
137
  display: flex;
131
138
  overflow: auto;
132
- height: 100%;
139
+ flex: 1 1 0%;
140
+ min-height: 0;
133
141
  padding-top: 0.5rem;
134
142
  padding-bottom: 0.5rem;
135
143
  flex-direction: column;
@@ -570,7 +578,7 @@
570
578
 
571
579
  @media (min-width: 768px) {
572
580
  .grid-container {
573
- height: 550px;
581
+ height: calc(100vh - 4rem);
574
582
  grid-template-columns: repeat(9, minmax(0, 1fr));
575
583
  gap: 1rem;
576
584
  }