@rpg-engine/long-bow 0.3.28 → 0.3.29

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.28",
3
+ "version": "0.3.29",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -30,7 +30,7 @@ export const Chat: React.FC<IChatProps> = ({
30
30
  chatMessages,
31
31
  onSendChatMessage,
32
32
  width = '80%',
33
- height = '250px',
33
+ height = 'auto',
34
34
  onFocus,
35
35
  onBlur,
36
36
  color = '#c65102',
@@ -139,12 +139,8 @@ const ChatContainer = styled.div<IContainerProps>`
139
139
  height: ${props => props.height};
140
140
  width: ${({ width }) => width};
141
141
  padding: 10px;
142
- margin-top: 100px;
143
142
  background-color: rgba(0, 0, 0, 0.2);
144
- .chat-body {
145
- max-height: 170px;
146
- overflow-y: auto;
147
- }
143
+ height: auto;
148
144
  `;
149
145
 
150
146
  const TextField = styled.input`
@@ -157,6 +153,10 @@ const TextField = styled.input`
157
153
  const MessagesContainer = styled.div`
158
154
  height: 70%;
159
155
  margin-bottom: 10px;
156
+ .chat-body {
157
+ max-height: auto;
158
+ overflow-y: auto;
159
+ }
160
160
  `;
161
161
 
162
162
  const Message = styled.div<IMessageProps>`