@pubuduth-aplicy/chat-ui 2.2.22 → 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
package/src/components/Chat.tsx
CHANGED
|
@@ -61,7 +61,7 @@ export const Chat = () => {
|
|
|
61
61
|
}, [socket, sendMessage, updateMessageStatus, selectedConversation]);
|
|
62
62
|
|
|
63
63
|
return (
|
|
64
|
-
<div className="
|
|
64
|
+
<div className="w-full mb-5">
|
|
65
65
|
<div className="grid-container">
|
|
66
66
|
<div className={`sidebarContainer dark:bg-gray-800 ${
|
|
67
67
|
selectedConversation ? "mobile-hidden" : "mobile-visible"
|
|
@@ -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,
|
package/src/style/style.css
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
/* grid-template-columns: repeat(12, minmax(0, 1fr)); */
|
|
5
5
|
border-radius: 0.5rem;
|
|
6
|
-
width:
|
|
6
|
+
width: 100%;
|
|
7
7
|
margin-top: 10px;
|
|
8
8
|
background-clip: padding-box;
|
|
9
9
|
/* background-color: #9CA3AF; */
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -439,8 +447,6 @@
|
|
|
439
447
|
width: 100%;
|
|
440
448
|
font-family: Arial, sans-serif;
|
|
441
449
|
margin-bottom: 8px;
|
|
442
|
-
margin: 0 auto;
|
|
443
|
-
max-width: 1200px;
|
|
444
450
|
}
|
|
445
451
|
|
|
446
452
|
.message-row {
|
|
@@ -572,7 +578,7 @@
|
|
|
572
578
|
|
|
573
579
|
@media (min-width: 768px) {
|
|
574
580
|
.grid-container {
|
|
575
|
-
height:
|
|
581
|
+
height: calc(100vh - 4rem);
|
|
576
582
|
grid-template-columns: repeat(9, minmax(0, 1fr));
|
|
577
583
|
gap: 1rem;
|
|
578
584
|
}
|