@pubuduth-aplicy/chat-ui 2.1.99 → 2.2.1

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.1.99",
3
+ "version": "2.2.1",
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": "",
@@ -1,4 +1,4 @@
1
- import { useEffect, useState } from "react";
1
+ import { useState } from "react";
2
2
  import { ChevronDown } from "lucide-react";
3
3
 
4
4
  interface CollapsibleSectionProps {
@@ -18,10 +18,6 @@ const CollapsibleSection = ({
18
18
  setIsOpen(!isOpen);
19
19
  };
20
20
 
21
- useEffect(() => {
22
- window.dispatchEvent(new Event("resize"));
23
- }, [isOpen]);
24
-
25
21
  return (
26
22
  <div className="border-b border-gray-200">
27
23
  <div
@@ -39,7 +35,7 @@ const CollapsibleSection = ({
39
35
  />
40
36
  </div>
41
37
  {isOpen && (
42
- <div className="p-2 text-gray-900 dark:text-gray-200">{children}</div>
38
+ <div className="p-2 text-gray-900 dark:text-gray-200 h-[400px]">{children}</div>
43
39
  )}
44
40
  </div>
45
41
  );
@@ -23,10 +23,10 @@ const VirtualizedChatList = ({ conversations }: Props) => {
23
23
  <div
24
24
  ref={parentRef}
25
25
  style={{
26
- // height: `400px`,
26
+ height: `400px`,
27
27
  width: "100%",
28
- position: "relative",
29
- // overflow: "auto",
28
+ // position: "relative",
29
+ overflow: "auto",
30
30
  }}
31
31
  >
32
32
  <div
@@ -279,7 +279,7 @@ const Conversations = () => {
279
279
  .reduce((total, convo) => total + (convo.unreadMessageCount || 0), 0);
280
280
 
281
281
  return (
282
- <div className="chatSidebarConversations">
282
+ <div className="chatSidebarConversations">
283
283
  {/* Tab Navigation */}
284
284
  <div className="flex border-b border-gray-200">
285
285
  <button
@@ -327,14 +327,14 @@ const Conversations = () => {
327
327
  </div>
328
328
  ) : (
329
329
  <>
330
- <div className="h-full overflow-auto">
330
+ <div className="h-full">
331
331
  {activeTab === "personal" && filteredPersonalChats.length > 0 && (
332
332
  <VirtualizedChatList conversations={filteredPersonalChats} />
333
333
  )}
334
334
 
335
335
  {activeTab === "service" &&
336
336
  Object.entries(filteredGroupedServiceChats).length > 0 && (
337
- <div className="p-2">
337
+ <div className="p-2 h-[400px]">
338
338
  {Object.entries(filteredGroupedServiceChats).map(
339
339
  ([
340
340
  serviceId,
@@ -130,7 +130,6 @@
130
130
  display: flex;
131
131
  overflow: auto;
132
132
  height: 100%;
133
- min-height: 0;
134
133
  padding-top: 0.5rem;
135
134
  padding-bottom: 0.5rem;
136
135
  flex-direction: column;