@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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubuduth-aplicy/chat-ui",
3
- "version": "2.1.99",
3
+ "version": "2.2.0",
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
@@ -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,7 +327,7 @@ 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
  )}
@@ -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;