@pubuduth-aplicy/chat-ui 2.2.21 → 2.2.23
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"
|
|
@@ -217,7 +217,7 @@ const Messages = () => {
|
|
|
217
217
|
<div
|
|
218
218
|
ref={chatContainerRef}
|
|
219
219
|
className="chatMessages"
|
|
220
|
-
style={{ overflowY: "auto",
|
|
220
|
+
style={{ overflowY: "auto", flex: "1 1 0%", minHeight: 0, position: "relative" }}
|
|
221
221
|
>
|
|
222
222
|
<SystemNotice />
|
|
223
223
|
<div ref={ref} className="my-8">
|
|
@@ -226,11 +226,7 @@ const Messages = () => {
|
|
|
226
226
|
{messages?.length > 0 ? (
|
|
227
227
|
messages?.map((message: any) =>
|
|
228
228
|
message ? (
|
|
229
|
-
<div
|
|
230
|
-
key={message._id}
|
|
231
|
-
data-message-id={message._id}
|
|
232
|
-
style={{ flex: 1, minHeight: 0, overflowY: "auto" }}
|
|
233
|
-
>
|
|
229
|
+
<div key={message._id} data-message-id={message._id}>
|
|
234
230
|
<Message message={message} />
|
|
235
231
|
</div>
|
|
236
232
|
) : null,
|
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; */
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
.chatMessageContainer {
|
|
192
192
|
display: flex;
|
|
193
193
|
flex-direction: column;
|
|
194
|
-
justify-content: center;
|
|
195
194
|
height: 100%;
|
|
195
|
+
min-height: 0;
|
|
196
196
|
background-color: #FEFEFF;
|
|
197
197
|
}
|
|
198
198
|
|
|
@@ -439,8 +439,6 @@
|
|
|
439
439
|
width: 100%;
|
|
440
440
|
font-family: Arial, sans-serif;
|
|
441
441
|
margin-bottom: 8px;
|
|
442
|
-
margin: 0 auto;
|
|
443
|
-
max-width: 1200px;
|
|
444
442
|
}
|
|
445
443
|
|
|
446
444
|
.message-row {
|