@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.3.26",
3
+ "version": "0.3.28",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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
  `;