Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

overflow hidden on message so word forces break; decrease maxlength of username to 60 chars. fix #417

Ginger Wongc919b7334dd3
diff --git a/webroot/js/components/chat/message.js b/webroot/js/components/chat/message.js
index c5474c3dc7..b3028e5dc3 100644
--- a/webroot/js/components/chat/message.js
+++ b/webroot/js/components/chat/message.js
@@ -19,7 +19,7 @@ export default class Message extends Component {
html`
<div class="message message-name-change flex items-center justify-start p-3">
<div class="message-content flex flex-row items-center justify-center text-sm w-full">
- <div class="text-white text-center opacity-50 break-words">
+ <div class="text-white text-center opacity-50 overflow-hidden break-words">
<span class="font-bold">${oldName}</span> is now known as <span class="font-bold">${newName}</span>.
</div>
</div>
diff --git a/webroot/js/components/chat/username.js b/webroot/js/components/chat/username.js
index 6caa73129c..918a544aa3 100644
--- a/webroot/js/components/chat/username.js
+++ b/webroot/js/components/chat/username.js
@@ -82,7 +82,7 @@ export default class UsernameForm extends Component {
<input type="text"
id="username-change-input"
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-black-500 rounded py-1 px-1 leading-tight text-xs focus:bg-white"
- maxlength="100"
+ maxlength="60"
placeholder="Update username"
defaultValue=${username}
onKeydown=${this.handleKeydown}