diff --git a/webroot/index2.html b/webroot/index2.html
index babc44c3f..a751cacfb 100644
--- a/webroot/index2.html
+++ b/webroot/index2.html
@@ -1,10 +1,6 @@
diff --git a/webroot/js/components/chat/chat-input.js b/webroot/js/components/chat/chat-input.js
index fd472626b..0ba1e1cc1 100644
--- a/webroot/js/components/chat/chat-input.js
+++ b/webroot/js/components/chat/chat-input.js
@@ -62,8 +62,9 @@ export default class ChatInput extends Component {
initialCategory: 'custom',
showPreview: false,
emojiSize: '30px',
- emojisPerRow: 6,
- position: 'top'
+ // emojisPerRow: 6,
+ position: 'right-start',
+ strategy: 'absolute',
});
this.emojiPicker.on('emoji', emoji => {
this.handleEmojiSelected(emoji);
@@ -260,10 +261,12 @@ export default class ChatInput extends Component {
type="button"
style=${emojiButtonStyle}
onclick=${this.handleEmojiButtonClick}
+ disabled=${!inputEnabled}
>😏
- `);
- }
-
- // not needed for standalone, just messages only. remove later.
- return (
- html`
- <${Fragment}>
- <${UsernameForm}
- username=${username}
- userAvatarImage=${userAvatarImage}
- handleUsernameChange=${this.handleUsernameChange}
- handleChatToggle=${this.handleChatToggle}
- />
-
- <${Chat}
- websocket=${websocket}
- username=${username}
- userAvatarImage=${userAvatarImage}
- />
- ${Fragment}>
- `);
+ `
+ );
}
-
}
diff --git a/webroot/js/utils/constants.js b/webroot/js/utils/constants.js
index a21d32997..9eb6bfae2 100644
--- a/webroot/js/utils/constants.js
+++ b/webroot/js/utils/constants.js
@@ -15,7 +15,7 @@ export const TIMER_STREAM_DURATION_COUNTER = 1000;
export const TEMP_IMAGE = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
export const MESSAGE_OFFLINE = 'Stream is offline.';
-export const MESSAGE_ONLINE = 'Stream is online';
+export const MESSAGE_ONLINE = 'Stream is online.';
export const URL_OWNCAST = 'https://github.com/gabek/owncast'; // used in footer
diff --git a/webroot/standalone-chat.html b/webroot/standalone-chat.html
index ec3899684..96fd8aa76 100644
--- a/webroot/standalone-chat.html
+++ b/webroot/standalone-chat.html
@@ -4,11 +4,9 @@
-
-
@@ -21,10 +19,8 @@
import { render, html } from "https://unpkg.com/htm/preact/index.mjs?module";
import StandaloneChat from './js/standalone-chat-app.js';
- const messagesOnly = false;
-
(function () {
- render(html`<${StandaloneChat} messagesOnly=${messagesOnly} />`, document.getElementById("chat-container"));
+ render(html`<${StandaloneChat} messagesOnly />`, document.getElementById("chat-container"));
})();