@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/dist/long-bow.cjs.development.js +3 -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 +3 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +6 -6
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export const Chat: React.FC<IChatProps> = ({
|
|
|
30
30
|
chatMessages,
|
|
31
31
|
onSendChatMessage,
|
|
32
32
|
width = '80%',
|
|
33
|
-
height = '
|
|
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
|
-
|
|
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>`
|