@pubuduth-aplicy/chat-ui 2.1.99 → 2.2.0
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
@@ -23,10 +23,10 @@ const VirtualizedChatList = ({ conversations }: Props) => {
|
|
|
23
23
|
<div
|
|
24
24
|
ref={parentRef}
|
|
25
25
|
style={{
|
|
26
|
-
|
|
26
|
+
height: `400px`,
|
|
27
27
|
width: "100%",
|
|
28
|
-
position: "relative",
|
|
29
|
-
|
|
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
|
-
|
|
282
|
+
<div className="chatSidebarConversations">
|
|
283
283
|
{/* Tab Navigation */}
|
|
284
284
|
<div className="flex border-b border-gray-200">
|
|
285
285
|
<button
|
|
@@ -327,7 +327,7 @@ const Conversations = () => {
|
|
|
327
327
|
</div>
|
|
328
328
|
) : (
|
|
329
329
|
<>
|
|
330
|
-
<div className="h-full
|
|
330
|
+
<div className="h-full">
|
|
331
331
|
{activeTab === "personal" && filteredPersonalChats.length > 0 && (
|
|
332
332
|
<VirtualizedChatList conversations={filteredPersonalChats} />
|
|
333
333
|
)}
|