@rpg-engine/long-bow 0.3.26 → 0.3.28
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/dist/long-bow.cjs.development.js +5 -3
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +5 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +5 -2
package/package.json
CHANGED
|
@@ -88,7 +88,7 @@ export const Chat: React.FC<IChatProps> = ({
|
|
|
88
88
|
return (
|
|
89
89
|
<ChatContainer width={width} height={height}>
|
|
90
90
|
<ErrorBoundary fallback={<p>Oops! Your chat has crashed.</p>}>
|
|
91
|
-
<MessagesContainer>
|
|
91
|
+
<MessagesContainer className="chat-body">
|
|
92
92
|
{onRenderChatMessages(chatMessages)}
|
|
93
93
|
</MessagesContainer>
|
|
94
94
|
|
|
@@ -141,6 +141,10 @@ const ChatContainer = styled.div<IContainerProps>`
|
|
|
141
141
|
padding: 10px;
|
|
142
142
|
margin-top: 100px;
|
|
143
143
|
background-color: rgba(0, 0, 0, 0.2);
|
|
144
|
+
.chat-body {
|
|
145
|
+
max-height: 170px;
|
|
146
|
+
overflow-y: auto;
|
|
147
|
+
}
|
|
144
148
|
`;
|
|
145
149
|
|
|
146
150
|
const TextField = styled.input`
|
|
@@ -151,7 +155,6 @@ const TextField = styled.input`
|
|
|
151
155
|
`;
|
|
152
156
|
|
|
153
157
|
const MessagesContainer = styled.div`
|
|
154
|
-
overflow-y: scroll;
|
|
155
158
|
height: 70%;
|
|
156
159
|
margin-bottom: 10px;
|
|
157
160
|
`;
|